Skip to content

Commit

Permalink
Update HeidelbergWallbox.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
BorisBrock committed Jul 26, 2024
1 parent 473d5f8 commit 7b5aded
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Components/Wallbox/HeidelbergWallbox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ HeidelbergWallbox *HeidelbergWallbox::Instance()
void HeidelbergWallbox::Init()
{
uint16_t rawCurrent = static_cast<uint16_t>(Constants::HeidelbergWallbox::FailSafeCurrentA / Constants::HeidelbergWallbox::CurrentFactor);
Serial.printf("Heidelberg wallbox: Initializing fail safe current with %d (raw)", rawCurrent);
Serial.printf("Heidelberg wallbox: Initializing fail safe current with %d (raw)\n", rawCurrent);
if (!ModbusRTU::Instance()->WriteHoldRegister16(Constants::HeidelbergRegisters::FailsafeCurrent, rawCurrent))
{
// Error writing modbus register
Serial.println("ERROR: Could not set fail safe current");
}

uint16_t standbyDisabled = 4;
Serial.printf("Heidelberg wallbox: Initializing standby mode with %d (raw)", standbyDisabled);
Serial.printf("Heidelberg wallbox: Initializing standby mode with %d (raw)\n", standbyDisabled);
if (!ModbusRTU::Instance()->WriteHoldRegister16(Constants::HeidelbergRegisters::DisableStandby, standbyDisabled))
{
// Error writing modbus register
Expand Down

0 comments on commit 7b5aded

Please sign in to comment.