mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-11-19 18:40:17 +00:00
changed format of the temperature value to be compliant with new specification
This commit is contained in:
parent
9c8c4898f7
commit
fb4272866d
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user