Commit ed41fcd1 authored by Sergi Hernandez's avatar Sergi Hernandez
Browse files

The function to add an EEPROM memory segment already updated the number of EEPROM variables.

parent b80dc200
#include "mem_module.h"
extern unsigned char mem_in_window(unsigned short int mem_start_address,unsigned short int mem_length,unsigned short int start_address,unsigned short int length);
extern void EE_update_num_variables(unsigned int num);
void mem_module_init(TMemModule *module)
{
......@@ -70,6 +71,7 @@ unsigned char mem_module_add_eeprom_segment(TMemModule *module,unsigned short in
module->eeprom_segments[module->num_eeprom_segments].start_address=start_address;
module->eeprom_segments[module->num_eeprom_segments].length=length;
module->num_eeprom_segments++;
EE_update_num_variables(length);
return 0x01;
}
else
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment