Commit 2e5afe78 authored by wyattc's avatar wyattc
Browse files

write progress and temp

parent c11cc683
......@@ -77,7 +77,17 @@ uint8_t tab_state = 0;
erase_block( BARSTART_X, BARSTART_Y, BARSTART_X+100,BAREND_Y);
progress=g_rx_buff[0];
temp=g_rx_buff[1];
if(tab_state==0){
MSS_UART_get_rx( this_uart, g_rx_buff, sizeof(g_rx_buff) );
erase_block( BARSTART_X, BARSTART_Y, BARSTART_X+100,BAREND_Y);
if(atoi(g_rx_buff[0])<100)
fill(BARSTART_X, BARSTART_X+atoi(g_rx_buff[0]));
else if(atoi(g_rx_buff[0])>=100){
fill(BARSTART_X, BARSTART_X+100);
display_completed();
}
write_temp(g_rx_buff[1]);
}
signed char odox=g_rx_buff[2];
signed char odoy=g_rx_buff[3];
signed char mousex=g_rx_buff[4];
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment