Only run cppcheck compile once in Travis

This commit is contained in:
Josh Stewart 2017-06-29 14:52:51 +10:00
parent d790d9c3b9
commit 6e9ed35648
2 changed files with 3 additions and 3 deletions

View File

@ -49,8 +49,8 @@ before_install:
- wget https://github.com/danmar/cppcheck/archive/1.79.zip
- unzip 1.79.zip
- cd cppcheck-1.79
- make SRCDIR=build CFGDIR=/usr/share/cppcheck/ HAVE_RULES=yes
- sudo make install CFGDIR=/usr/share/cppcheck/
# - make SRCDIR=build CFGDIR=/usr/share/cppcheck/ HAVE_RULES=yes
- sudo make install CFGDIR=/usr/share/cppcheck/ HAVE_RULES=yes
install:
- pip install -U platformio

View File

@ -25,7 +25,7 @@ void doUpdates()
}
//Final check is always for 255 and 0 (Brand new arduino)
if(EEPROM.read(EEPROM_DATA_VERSION) == 0 || EEPROM.read(EEPROM_DATA_VERSION) == 255)
if( (EEPROM.read(EEPROM_DATA_VERSION) == 0) || (EEPROM.read(EEPROM_DATA_VERSION) == 255) )
{
configPage10.true_address = 0x200;
EEPROM.write(EEPROM_DATA_VERSION, CURRENT_DATA_VERSION);