Subversion Repositories Projects

Rev

Rev 685 | Rev 728 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 685 Rev 686
Line 113... Line 113...
113
    static uint8_t c2 = 0;
113
    static uint8_t c2 = 0;
114
    static uint8_t usart_rx_ok = 0;
114
    static uint8_t usart_rx_ok = 0;
115
    uint8_t crc1, crc2;
115
    uint8_t crc1, crc2;
116
    // the rxd buffer is unlocked
116
    // the rxd buffer is unlocked
117
    if (usart_rx_ok == 0) {
117
    if (usart_rx_ok == 0) {
118
        if ((c2 == '#') && (c1 == 'b') && (c == 'D' || c == 'V' || c == 'O')) {
118
        if ((c2 == '#') && (c1 == 'b' || c1 == 'c') && (c == 'D' || c == 'V' || c == 'O')) {
119
            usart_rx_ok = 1;
119
            usart_rx_ok = 1;
120
            rxd_buffer[ptr_rxd_buffer++] = c2;
120
            rxd_buffer[ptr_rxd_buffer++] = c2;
121
            crc = c2;
121
            crc = c2;
122
            rxd_buffer[ptr_rxd_buffer++] = c1;
122
            rxd_buffer[ptr_rxd_buffer++] = c1;
123
            crc += c1;
123
            crc += c1;