243 |
|
|
244 |
if ( global_serial_byte_counter < BUFFER) //Prevent buffer overrun |
if ( global_serial_byte_counter < BUFFER) //Prevent buffer overrun |
245 |
global_serial_recieve_buffer[ global_serial_byte_counter++ ] = data_byte; // fills the data_byte into our buffer. |
global_serial_recieve_buffer[ global_serial_byte_counter++ ] = data_byte; // fills the data_byte into our buffer. |
246 |
|
else |
247 |
|
{ |
248 |
|
global_serial_recieve_buffer[0] = 0; |
249 |
|
global_serial_byte_counter = 0; |
250 |
|
return; |
251 |
|
} |
252 |
|
|
253 |
|
|
254 |
if (data_byte == '\r') // when we meet a '\r', the transmission is done, and we fill the constxt of |
if (data_byte == '\r') // when we meet a '\r', the transmission is done, and we fill the constxt of |
285 |
{ |
{ |
286 |
if(global_temp_update_display != global_time_counter) |
if(global_temp_update_display != global_time_counter) |
287 |
{ |
{ |
288 |
lcd_clear(); |
// lcd_clear(); |
289 |
lcd_goto(0x00); |
lcd_goto(0x00); |
290 |
|
|
291 |
sprintf(global_lcd_buf, "Temp: %3d", global_temp); |
sprintf(global_lcd_buf, "Temp: %3d", global_temp); |