Skip to content

Commit d28d515

Browse files
Copilotdorkmo
andcommitted
Use double for JGetNumber result to match codebase pattern
Co-authored-by: dorkmo <[email protected]>
1 parent 6b4a8ec commit d28d515

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

TankAlarm-112025-Client-BluesOpta/TankAlarm-112025-Client-BluesOpta.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1880,14 +1880,14 @@ static float readNotecardVinVoltage() {
18801880
return -1.0f;
18811881
}
18821882

1883-
float voltage = JGetNumber(rsp, "value");
1883+
double voltage = JGetNumber(rsp, "value");
18841884
notecard.deleteResponse(rsp);
18851885

1886-
if (voltage > 0.0f) {
1886+
if (voltage > 0.0) {
18871887
Serial.print(F("Notecard VIN voltage: "));
18881888
Serial.print(voltage);
18891889
Serial.println(F(" V"));
18901890
}
18911891

1892-
return voltage;
1892+
return (float)voltage;
18931893
}

0 commit comments

Comments
 (0)