--- trunk/Embedded/main.c 2007/12/09 20:50:42 204 +++ trunk/Embedded/main.c 2007/12/09 21:47:39 207 @@ -16,8 +16,8 @@ unsigned char global_Pot_Hi, global_Pot_Lo; unsigned char global_serial_send[BUFFER], global_serial_recieve_buffer[BUFFER]; -bit global_recieve_done = 0, global_interval_changed = 0; -unsigned int global_serial_byte_counter = 0, global_sms_counter = 1, global_time_counter = 0, global_time_counter_image = 0; +bit global_recieve_done = 0; //, global_interval_changed = 0; +unsigned int global_serial_byte_counter = 0, global_sms_counter = 1, global_time_counter = 0; //, global_time_counter_image = 0; unsigned int global_emergency_counter = 600, global_time_interval = 3600; unsigned char global_temp = 0; @@ -45,7 +45,7 @@ void serial_recieved(void); void serial_send(void); void update_lcd(void); -void convertTemp(void); +void convert_temp(void); void timer1_interrupt(void); void on_recieve(void); void on_initial_recieve(void); @@ -347,7 +347,7 @@ } } -void convert_temp() +void convert_temp(void) { short adVal; adVal = (global_Pot_Hi << 8) | global_Pot_Lo; @@ -514,12 +514,13 @@ if( global_emergency_counter > 7200 ) global_emergency_counter = 600; +// the outcommented lines are useless, because eeprom_writer() is called from sms_recieved() when the conf sms has been decoded. // Checks if there has been recieved a config sms. - if(global_interval_changed ) - { - eeprom_writer(); - global_interval_changed = 0; - } +// if(global_interval_changed ) +// { +// eeprom_writer(); +// global_interval_changed = 0; +// } // Checking if A/D convertion is done, and save the data in global_Pot_?? if(GODONE==0) {