equal
deleted
inserted
replaced
80 input[0] = Read_b_eep (input[CMD_DATA_START]); |
80 input[0] = Read_b_eep (input[CMD_DATA_START]); |
81 comm_send_data(input, 0x01); |
81 comm_send_data(input, 0x01); |
82 break; |
82 break; |
83 |
83 |
84 case CMD_WRITE_EEPROM: |
84 case CMD_WRITE_EEPROM: |
85 if (input[CMD_HD_LENGTH+1] != 1) { comm_send_nack(); break;} |
85 if (input[CMD_HD_LENGTH+1] != 2) { comm_send_nack(); break;} |
86 Write_b_eep (input[CMD_DATA_START],input[CMD_DATA_START+1]); |
86 Write_b_eep (input[CMD_DATA_START],input[CMD_DATA_START+1]); |
87 comm_send_ack(); |
87 comm_send_ack(); |
88 break; |
88 break; |
89 |
89 |
90 |
90 |