Skip to content

Commit

Permalink
Fix for #189
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartpittaway committed Mar 29, 2023
1 parent de9f98a commit 4e72db9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -53,3 +53,4 @@ dkms.conf

**/.vscode
*.log
ESPController/compile_commands.json
2 changes: 1 addition & 1 deletion ESPController/src/pylon_canbus.cpp
Expand Up @@ -175,7 +175,7 @@ void pylon_message_359()
// Pylon can have multiple battery each of 74Ah capacity, so emulate this based on total Ah capacity
// this drives the inverter to assume certain charge/discharge parameters based on number of battery banks installed
// Set inverter to use "Pylontech US3000C 3.5kWh" in its settings (these are 74Ah each)
data.byte4 = min((uint8_t)1, (uint8_t)round(mysettings.nominalbatcap / 74.0));
data.byte4 = max((uint8_t)1, (uint8_t)round(mysettings.nominalbatcap / 74.0));
}
else
{
Expand Down

0 comments on commit 4e72db9

Please sign in to comment.