From 6e9ed35648ddabd7716aa7e43c6cc23efc3e0758 Mon Sep 17 00:00:00 2001 From: Josh Stewart Date: Thu, 29 Jun 2017 14:52:51 +1000 Subject: [PATCH] Only run cppcheck compile once in Travis --- .travis.yml | 4 ++-- speeduino/updates.ino | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 7f84c1e5..7408ed85 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/speeduino/updates.ino b/speeduino/updates.ino index 6999bdd7..b8044392 100644 --- a/speeduino/updates.ino +++ b/speeduino/updates.ino @@ -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);