Skip to content

Commit 4f69a0e

Browse files
authored
Merge pull request #5 from EnviroDIY/develop
Re-did enumerations
2 parents f746439 + 17f2331 commit 4f69a0e

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

examples/GetValues/GetValues.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ For testing individual functions in KellerModbus library
2323
// ---------------------------------------------------------------------------
2424

2525
// Define the sensor type
26-
kellerModel model = KellerAcculevel;
26+
kellerModel model = Acculevel_kellerModel;
2727

2828
// Define the sensor's modbus address
2929
byte modbusAddress = 0x01; // The sensor's modbus address, or SlaveID

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "KellerModbus",
3-
"version": "0.2.0",
3+
"version": "0.2.1",
44
"keywords": "Keller, Modbus, communication, bus, sensor, water level, pressure",
55
"description": "Arduino library for communication with Keller pressure and water level sensors via Modbus.",
66
"repository":

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=KellerModbus
2-
version=0.2.0
2+
version=0.2.1
33
author=Anthony Aufdenkampe <aaufdenkampe@limno.com>
44
maintainer=Anthony Aufdenkampe <aaufdenkampe@limno.com>
55
sentence=Arduino library for communication with Keller pressure and water level sensors via Modbus.

src/KellerModbus.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ bool keller::getValues(float &valueP1, float &valueTOB1)
9595

9696
switch(_model)
9797
{
98-
case KellerNanolevel: // This gets two values, but as seperate messages
98+
case Nanolevel_kellerModel: // This gets two values, but as seperate messages
9999
{
100100
if (modbus.getRegisters(0x03, 0x0002, 2))
101101
{

src/KellerModbus.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ Tested with Acculevel, Nanolevel
1919
// NOTE: not presently used but in place for future. See use in https://github.com/EnviroDIY/YosemitechModbus
2020
typedef enum kellerModel
2121
{
22-
KellerAcculevel = 0,
23-
KellerNanolevel = 1,
22+
Acculevel_kellerModel = 0,
23+
Nanolevel_kellerModel = 1,
2424
OTHER // Use if the sensor model is another model.
2525
} kellerModel;
2626

0 commit comments

Comments
 (0)