--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,7 @@
+VERSION_SIZE=64
+VERSION_ADDR=0xFFC0
 CC=sdcc
-CFLAGS=-c -mstm8 -DSTM8S105 -I STM8S_StdPeriph_Driver/inc --debug 
+CFLAGS=-c -mstm8 -DSTM8S105 -DVERSION_SIZE=$(VERSION_SIZE) -DVERSION_ADDR=$(VERSION_ADDR) -I STM8S_StdPeriph_Driver/inc --debug 
 LDFLAGS=-mstm8 stm8.lib stm8s_minilib.lib -L STM8S_StdPeriph_Driver/src
 SOURCES=main.c init.c leds.c rx_ringbuffer.c statistics.c eeprom.c vs1053.c uid.c cmd.c 
 OBJECTS=$(SOURCES:.c=.o)
@@ -16,7 +18,7 @@
 $(EXECUTABLE): $(OBJECTS) 
 	$(CC) $(LDFLAGS) $(OBJECTS_LINK) -o $@
 	packihx $(EXECUTABLE) > $(EXECUTABLE_HEX)
-	srec_cat -disable_sequence_warnings $(EXECUTABLE_HEX) -intel $(PATCH) -intel $(VERSION_INFO) -binary -offset 0xFFE0 -o $(HEX_N_PATCH) -intel
+	srec_cat -disable_sequence_warnings $(EXECUTABLE_HEX) -intel $(PATCH) -intel $(VERSION_INFO) -binary -offset $(VERSION_ADDR) -o $(HEX_N_PATCH) -intel
 	srec_cat -disable_sequence_warnings $(HEX_N_PATCH) -intel -offset -32768 -o $(BIN_N_PATCH) -binary