Skip to content

Commit

Permalink
modbus_tcp: Remove debug output.
Browse files Browse the repository at this point in the history
  • Loading branch information
rtrbt committed Oct 28, 2024
1 parent 996a1d9 commit d8a9b2d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions software/src/modules/modbus_tcp/modbus_tcp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -989,11 +989,8 @@ void ModbusTcp::update_keba_regs()

if (api.hasFeature("evse")) {
write_allowed = api.getState("evse/slots")->get(CHARGING_SLOT_MODBUS_TCP)->get("active")->asBool();
logger.printfln("write allowed %d", write_allowed);
if (write_allowed) {
// Not strictly necessary because the slots are disabled, but read-only means read-only.
logger.printfln("set_modbus_current %d", keba_write_cpy->set_charging_current);
logger.printfln("set_modbus_enabled %d", keba_write_cpy->enable_station == 1);
evse_common.set_modbus_current(keba_write_cpy->set_charging_current);
evse_common.set_modbus_enabled(keba_write_cpy->enable_station == 1);
}
Expand Down

0 comments on commit d8a9b2d

Please sign in to comment.