Skip to content

Commit e30fb72

Browse files
author
jantje
committed
div 1000 for logging voltmeter
1 parent d1cde2e commit e30fb72

3 files changed

Lines changed: 4 additions & 1 deletion

File tree

SerialDataInterface/SerialDataInterface.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ const char STATENAME[] PROGMEM="StateName";
1111
const char STATE[] PROGMEM="State";
1212
const char MULTIPLIER[] PROGMEM ="Multiplier";
1313
const char MULTIPLIER_DIV_10[] PROGMEM ="Multiplier/10";
14+
const char MULTIPLIER_DIV_1000[] PROGMEM ="Multiplier/1000";
1415

1516
const char PINVALUE[] PROGMEM ="PinValue";
1617
const char PIN[] PROGMEM = "Pin";

SerialDataInterface/SerialDataInterface.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ extern const char DONE[]PROGMEM;
2929
extern const char STATENAME[] PROGMEM;
3030
extern const char STATE[] PROGMEM;
3131
extern const char MULTIPLIER_DIV_10[] PROGMEM;
32+
extern const char MULTIPLIER_DIV_1000[] PROGMEM;
33+
3234
#define CLASSSEPERATOR '.'
3335
#define FIELDSEPERATOR ';'
3436
#define FP(name) ((const __FlashStringHelper *)(name))

VoltMeter/VoltMeter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ void VoltMeter::loop()
5454
void VoltMeter::serialRegister(const __FlashStringHelper* Name)
5555
{
5656
FieldData::set(Name,F("CentiVolt"),0,&myCentiVolt);
57-
FieldData::setNext((__FlashStringHelper *)MULTIPLIER,MOD_WRITE|MOD_SAVE,&myMultiplyerValue);
57+
FieldData::setNext((__FlashStringHelper *)MULTIPLIER_DIV_1000,MOD_WRITE|MOD_SAVE,&myMultiplyerValue);
5858

5959
#ifdef DETAILED_SERIAL_LOGGING
6060
FieldData::setNext(F("Value"),0,&myActualReadValue);

0 commit comments

Comments
 (0)