Actually update config version, use -Werror

This commit is contained in:
Will Toohey
2018-11-12 14:59:15 +10:00
parent 625f6047ba
commit fecd6f5834
2 changed files with 3 additions and 2 deletions
+1
View File
@@ -59,6 +59,7 @@ void InitConfig(void) {
// update the ones that actually need upgrade
eeprom_write_byte(&eeConfig.ledBrightness, sdvxConfig.ledBrightness);
eeprom_update_block(&sdvxConfig.startColour, &eeConfig.startColour, sizeof(sdvxConfig.startColour));
eeprom_write_word(&eeConfig.configVersion, CONFIG_VERSION);
case CONFIG_VERSION: // nothing needs to change
break;
default:
+2 -2
View File
@@ -20,7 +20,7 @@ OPTIMIZATION = s
TARGET = PocketVoltex
SRC = $(TARGET).c asciihid.c Descriptors.c Config.c Encoder.c LED.c LEDPatterns.c Macro.c $(LUFA_SRC_USB) $(LUFA_SRC_USBCLASS)
LUFA_PATH = ../LUFA
CC_FLAGS = -DUSE_LUFA_CONFIG_HEADER -IConfig/
CC_FLAGS = -DUSE_LUFA_CONFIG_HEADER -IConfig/ -Werror
LD_FLAGS =
AVRDUDE = avrdude -c usbasp -p $(MCU)
@@ -72,7 +72,7 @@ rfuse:
wfuse:
# no more HWB, boot directly to bootloader
$(AVRDUDE) -U lfuse:w:0xde:m -U hfuse:w:0xda:m -U efuse:w:0xfe:m
disablereset:
$(AVRDUDE) -U lfuse:w:0xde:m -U hfuse:w:0x9a:m -U efuse:w:0xfe:m