mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-04-30 21:49:33 +00:00
Fixed compile errors
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -3,6 +3,6 @@
|
|||||||
[Rr]elease/
|
[Rr]elease/
|
||||||
**/__vm/
|
**/__vm/
|
||||||
.DS_Store
|
.DS_Store
|
||||||
.vcode
|
.vscode
|
||||||
.pio
|
.pio
|
||||||
platformio.ini
|
platformio.ini
|
||||||
|
|||||||
@@ -184,7 +184,7 @@ void readHanPort()
|
|||||||
|
|
||||||
void readHanPort_Aidon(int listSize)
|
void readHanPort_Aidon(int listSize)
|
||||||
{
|
{
|
||||||
if (listSize == (int)Aidon::List1 || listSize == (int)Aidon::List2 || listSize == (int)Aidon::List3 || listSize == (int)Aidon::List2_p1 ||)
|
if (listSize == (int)Aidon::List1 || listSize == (int)Aidon::List2 || listSize == (int)Aidon::List3 || listSize == (int)Aidon::List2_1p)
|
||||||
{
|
{
|
||||||
if (listSize == (int)Aidon::List2)
|
if (listSize == (int)Aidon::List2)
|
||||||
{
|
{
|
||||||
@@ -235,15 +235,15 @@ void readHanPort_Aidon(int listSize)
|
|||||||
data["U2"] = ((double) hanReader.getInt((int)Aidon_List2::VoltageL2)) / 10;
|
data["U2"] = ((double) hanReader.getInt((int)Aidon_List2::VoltageL2)) / 10;
|
||||||
data["U3"] = ((double) hanReader.getInt((int)Aidon_List2::VoltageL3)) / 10;
|
data["U3"] = ((double) hanReader.getInt((int)Aidon_List2::VoltageL3)) / 10;
|
||||||
}
|
}
|
||||||
else if (listSize == (int)Aidon::List2_p1)
|
else if (listSize == (int)Aidon::List2_1p)
|
||||||
{
|
{
|
||||||
data["lv"] = hanReader.getString((int)Aidon_List2_p1::ListVersionIdentifier);
|
data["lv"] = hanReader.getString((int)Aidon_List2_1p::ListVersionIdentifier);
|
||||||
data["id"] = hanReader.getString((int)Aidon_List2_p1::MeterID);
|
data["id"] = hanReader.getString((int)Aidon_List2_1p::MeterID);
|
||||||
data["type"] = hanReader.getString((int)Aidon_List2_p1::MeterType);
|
data["type"] = hanReader.getString((int)Aidon_List2_1p::MeterType);
|
||||||
data["P"] = hanReader.getInt((int)Aidon_List2_p1::ActiveImportPower);
|
data["P"] = hanReader.getInt((int)Aidon_List2_1p::ActiveImportPower);
|
||||||
data["Q"] = hanReader.getInt((int)Aidon_List2_p1::ReactiveExportPower);
|
data["Q"] = hanReader.getInt((int)Aidon_List2_1p::ReactiveExportPower);
|
||||||
data["I1"] = ((double) hanReader.getInt((int)Aidon_List2_p1::Current)) / 10;
|
data["I1"] = ((double) hanReader.getInt((int)Aidon_List2_1p::Current)) / 10;
|
||||||
data["U1"] = ((double) hanReader.getInt((int)Aidon_List2_p1::Voltage)) / 10;
|
data["U1"] = ((double) hanReader.getInt((int)Aidon_List2_1p::Voltage)) / 10;
|
||||||
}
|
}
|
||||||
else if (listSize == (int)Aidon::List3)
|
else if (listSize == (int)Aidon::List3)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ enum class Aidon
|
|||||||
{
|
{
|
||||||
List1 = 0x01,
|
List1 = 0x01,
|
||||||
List2 = 0x0D,
|
List2 = 0x0D,
|
||||||
List2_p1 = 0x09,
|
List2_1p = 0x09,
|
||||||
List3 = 0x12
|
List3 = 0x12
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user