altos: Switch ao_log.c and ao_log_big.c __xdata to __pdata
[fw/altos] / src / ao_log_big.c
index 0c6cff85835d3727318a298e9537a97df51ae80d..74d94c4baae9802855e2bb6acb233d2a38a16cb5 100644 (file)
@@ -60,7 +60,7 @@ ao_log_dump_check_data(void)
        return 1;
 }
 
        return 1;
 }
 
-static __xdata uint8_t ao_log_adc_pos;
+static __data uint8_t  ao_log_adc_pos;
 
 /* a hack to make sure that ao_log_records fill the eeprom block in even units */
 typedef uint8_t check_log_size[1-(256 % sizeof(struct ao_log_record))] ;
 
 /* a hack to make sure that ao_log_records fill the eeprom block in even units */
 typedef uint8_t check_log_size[1-(256 % sizeof(struct ao_log_record))] ;
@@ -72,7 +72,7 @@ typedef uint8_t check_log_size[1-(256 % sizeof(struct ao_log_record))] ;
 void
 ao_log(void)
 {
 void
 ao_log(void)
 {
-       uint16_t        next_sensor, next_other;
+       __pdata uint16_t        next_sensor, next_other;
 
        ao_storage_setup();
 
 
        ao_storage_setup();