Skip to content

Commit

Permalink
Actually update config version, use -Werror
Browse files Browse the repository at this point in the history
  • Loading branch information
mon committed Nov 12, 2018
1 parent 625f604 commit fecd6f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Firmware/PocketVoltex/Config.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions Firmware/PocketVoltex/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit fecd6f5

Please sign in to comment.