Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

Commit

Permalink
📝 Remove hardcoded track name
Browse files Browse the repository at this point in the history
  • Loading branch information
atanisoft committed Apr 6, 2020
1 parent 3c3c0e4 commit eb5755b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/DCCppProtocol/DCCppProtocol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ DCC_PROTOCOL_COMMAND_HANDLER(PowerOnCommand,
esp32cs::enable_ops_track_output();
// hardcoded response since enable/disable is deferred until the next
// check interval.
return "<p1 OPS>";
return StringPrintf("<p1 %s>", CONFIG_OPS_TRACK_NAME);
})

DECLARE_DCC_PROTOCOL_COMMAND_CLASS(PowerOffCommand, "0")
Expand All @@ -171,7 +171,7 @@ DCC_PROTOCOL_COMMAND_HANDLER(PowerOffCommand,
esp32cs::disable_track_outputs();
// hardcoded response since enable/disable is deferred until the next
// check interval.
return "<p0 OPS>";
return StringPrintf("<p0 %s>", CONFIG_OPS_TRACK_NAME);
})

#define GET_LOCO_VIA_EXECUTOR(NAME, address) \
Expand Down

0 comments on commit eb5755b

Please sign in to comment.