added firmware version to serial response #featureadd

This commit is contained in:
pyr0ball 2020-01-16 11:15:55 -08:00
parent 882a8721f0
commit a3e4ec86a5
3 changed files with 10 additions and 1 deletions

View file

@ -84,6 +84,7 @@ update the voltMeterConstant variable in pP_config.h with the correct value
------------------------------------------------------------*/
#define PP_VERSION 2.2.1_882a87
/* Debug output verbose mode will continuously output sensor readings
rather than waiting for user input */
#define VERBOSE true

View file

@ -188,6 +188,9 @@ void serialPrintConfig() {
Serial.print("VM_CONST ");
Serial.println(voltMeterConstant);
Serial.print("Firmware Version ");
Serial.println(PP_VERSION);
}
void serialPrintState() {
@ -207,9 +210,15 @@ void serialPrintState() {
Serial.print("\"Err\":");
Serial.print(ERR_STATE);
Serial.print(",");
Serial.print("\"PzCon\":");
Serial.print(PZ_STATE);
Serial.print(",");
Serial.print("\"Firm_Ver\":");
Serial.print(PP_VERSION);
Serial.print(",");
Serial.println("}");
}

View file

@ -27,7 +27,6 @@ int VFol = 0;
int BlinkState = 0;
int BlinkCount = (InitCount * 2) + 1; // Multiply Blink count by 2 to handle toggle state, add one extra to make sure light is on after
// Serial Input Parsing Variables
#define buffSize 40
char inputBuffer[buffSize];