/[H9]/trunk/Embedded/main.c
ViewVC logotype

Diff of /trunk/Embedded/main.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 166 by hedin, Wed Dec 5 16:00:03 2007 UTC revision 167 by hedin, Wed Dec 5 16:11:12 2007 UTC
# Line 243  void serial_recieved(void) Line 243  void serial_recieved(void)
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
# Line 280  void update_lcd(void) Line 285  void update_lcd(void)
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);

Legend:
Removed from v.166  
changed lines
  Added in v.167

  ViewVC Help
Powered by ViewVC 1.1.20