1
0
Fork 0
mirror of https://github.com/opentx/opentx.git synced 2025-07-26 09:45:21 +03:00

Cosmetics

This commit is contained in:
bsongis 2015-04-07 22:38:36 +02:00
parent 0f15828093
commit ae26f4c4d5
2 changed files with 2 additions and 10 deletions

View file

@ -163,7 +163,7 @@ void eeSwapModels(uint8_t id1, uint8_t id2)
}
// Read eeprom data starting at random address
void read32_eeprom_data(uint32_t eeAddress, register uint8_t *buffer, uint32_t size, uint32_t immediate)
void read32_eeprom_data(uint32_t eeAddress, register uint8_t *buffer, uint32_t size)
{
#ifdef SIMU
assert(size);
@ -182,9 +182,6 @@ void read32_eeprom_data(uint32_t eeAddress, register uint8_t *buffer, uint32_t s
spi_PDC_action( p, 0, buffer, 4, size ) ;
#endif
if (immediate )
return ;
while (!Spi_complete) {
#ifdef SIMU
sleep(5/*ms*/);
@ -540,11 +537,6 @@ void ee32_process()
eeAddress = File_system[Eeprom32_file_index].block_no ^ 1 ;
eeAddress <<= 12 ; // Block start address
Eeprom32_address = eeAddress ; // Where to put new data
#if 0
x = Eeprom32_data_size + sizeof( struct t_eeprom_header ) ; // Size needing to be checked
p = (uint8_t *) &Eeprom_buffer ;
read32_eeprom_data( eeAddress, p, x, EE_NOWAIT ) ;
#endif
Eeprom32_process_state = E32_READSENDING ;
}