Skip to content

Commit

Permalink
relay: terminal formatting crash
Browse files Browse the repository at this point in the history
  • Loading branch information
mcspr committed May 22, 2024
1 parent adf0180 commit c3a26a6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions code/espurna/relay.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3018,10 +3018,11 @@ static void _relayCommandPulseTimers(::terminal::CommandContext&& ctx) {
}

ctx.output.printf_P(
PSTR("pulse%zu\t{%.*s Duration=%u Status=#%c}\n"),
PSTR("pulse%zu\t{%.*s Duration=%u Status=%s}\n"),
timer.id(),
type.length(), type.data(),
timer.id(), timer.duration().count(),
timer.status() ? 't' : 'f');
timer.duration().count(),
timer.status() ? PSTR("ON") : PSTR("OFF"));
}

terminalOK(ctx);
Expand Down Expand Up @@ -3167,7 +3168,7 @@ bool _relayProcess(bool mode) {
_relayScheduleSave(id);
changed = true;

DEBUG_MSG_P(PSTR("[RELAY] #%u set to %s\n"), id, target ? "ON" : "OFF");
DEBUG_MSG_P(PSTR("[RELAY] #%u set to %s\n"), id, target ? PSTR("ON") : PSTR("OFF"));
}
}

Expand Down

0 comments on commit c3a26a6

Please sign in to comment.