changed format of the temperature value to be compliant with new specification

This commit is contained in:
nifi 2009-02-27 16:24:49 +00:00
parent 9c8c4898f7
commit fb4272866d

View File

@ -173,7 +173,7 @@ raven_gui_loop(process_event_t ev, process_data_t data)
break;
case CMD_TEMP:
/* Set temperature string in web server */
sprintf(udp_data, "temp %s", (char *)cmd.frame);
sprintf(udp_data, "T%s\r\n", (char *)cmd.frame);
uip_udp_packet_send(udp_conn, udp_data, data_len);
break;
default:
@ -201,7 +201,7 @@ int raven_lcd_serial_input(unsigned char ch)
/* first byte, must be 0x01 */
cmd.done = false;
if (ch != 0x01){
return;
return 0;
}
break;
case 1: