diff --git a/memory/src/mem_module.c b/memory/src/mem_module.c
index e97238840ad1c7030db65bcf3ca494fa56507c16..5b390ad49421e628701b6dd6a3f9024b073bbd3c 100644
--- a/memory/src/mem_module.c
+++ b/memory/src/mem_module.c
@@ -1,6 +1,7 @@
 #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