From 4c7ab3ec36f3003d11f4074fd5810c1f9757bb91 Mon Sep 17 00:00:00 2001 From: pyr0ball Date: Mon, 15 Jun 2020 11:39:39 -0700 Subject: [PATCH] added fallback version parameter. Fixes #73 #bugfix --- firmware/AVR-Source/Pyr0_Piezo_Sensor_v2.x.x/src/pP_config.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/firmware/AVR-Source/Pyr0_Piezo_Sensor_v2.x.x/src/pP_config.h b/firmware/AVR-Source/Pyr0_Piezo_Sensor_v2.x.x/src/pP_config.h index 836c07b..9ef4830 100644 --- a/firmware/AVR-Source/Pyr0_Piezo_Sensor_v2.x.x/src/pP_config.h +++ b/firmware/AVR-Source/Pyr0_Piezo_Sensor_v2.x.x/src/pP_config.h @@ -54,6 +54,10 @@ extern long voltMeterConstant; // For fine tuning input voltage sense #define I2C_SLAVE_ADDRESS 24 extern uint8_t pP_i2c_address; +#ifndef PP_VERSION + #define PP_VERSION "2.3.1" +#endif // PP_VERSION fallback if python script fails + void eraseEEPROM(); void setDefaultConfig(); void restoreConfig();