Skip to content

Commit

Permalink
fixed data type in JSON request
Browse files Browse the repository at this point in the history
  • Loading branch information
vaterlangen committed Oct 3, 2024
1 parent 9ce8ae7 commit 69e2d78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ZendureBattery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ bool ZendureBattery::init(bool verboseLogging)
prop[ZENDURE_REPORT_PV_BRAND] = 1; // means Hoymiles
prop[ZENDURE_REPORT_PV_AUTO_MODEL] = 0; // we did static setup
prop[ZENDURE_REPORT_AUTO_RECOVER] = static_cast<uint8_t>(config.Battery.ZendureBypassMode == static_cast<uint8_t>(ZendureBatteryStats::BypassMode::Automatic));
prop[ZENDURE_REPORT_AUTO_SHUTDOWN] = config.Battery.ZendureAutoShutdown;
prop[ZENDURE_REPORT_AUTO_SHUTDOWN] = static_cast<uint8_t>(config.Battery.ZendureAutoShutdown);
prop[ZENDURE_REPORT_BUZZER_SWITCH] = 0; // disable, as it is anoying
prop[ZENDURE_REPORT_BYPASS_MODE] = config.Battery.ZendureBypassMode;
prop[ZENDURE_REPORT_MAX_SOC] = config.Battery.ZendureMaxSoC * 10;
Expand Down

0 comments on commit 69e2d78

Please sign in to comment.