firmware/comm.c
changeset 25 96f051df5d60
parent 23 dc247e80ef26
equal deleted inserted replaced
24:8fede80bde19 25:96f051df5d60
    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