From 0d84c7647765371ca52152baed1ce1a310d0d169 Mon Sep 17 00:00:00 2001 From: Maxim Prokhorov Date: Sat, 30 Mar 2024 01:16:44 +0300 Subject: [PATCH] relay: optional pulse time in terminal, default to 0 --- code/espurna/relay.cpp | 71 +++++++++++++++++++++++++++++++++--------- 1 file changed, 56 insertions(+), 15 deletions(-) diff --git a/code/espurna/relay.cpp b/code/espurna/relay.cpp index efc840fa..233e0b19 100644 --- a/code/espurna/relay.cpp +++ b/code/espurna/relay.cpp @@ -2887,8 +2887,8 @@ static void _relayCommand(::terminal::CommandContext&& ctx) { PROGMEM_STRING(PulseCommand, "PULSE"); static void _relayCommandPulse(::terminal::CommandContext&& ctx) { - if (ctx.argv.size() < 3) { - terminalError(ctx, F("PULSE