From 2c5013662dfe3158b2c3806e59be2c62fb277915 Mon Sep 17 00:00:00 2001 From: Mikael Nousiainen Date: Tue, 23 Aug 2022 00:14:12 +0300 Subject: [PATCH] Fix warning message for allowed commands when rig is powered off --- tests/rigctl_parse.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/rigctl_parse.c b/tests/rigctl_parse.c index caeb59561..d6ee94898 100644 --- a/tests/rigctl_parse.c +++ b/tests/rigctl_parse.c @@ -1745,9 +1745,8 @@ readline_repeat: && cmd_entry->cmd != 0xf0 // chk_vfo && cmd_entry->cmd != 0x87) // set_powerstat { - //rig_debug(RIG_DEBUG_WARN, "%s: %s - only \\set_powerstat can be run \n", __func__, rigerror(-RIG_EPOWER)); rig_debug(RIG_DEBUG_WARN, - "%s: only \\set_powerstat can be run when rig powered off\n", __func__); + "%s: command %s not allowed when rig is powered off\n", __func__, cmd_entry->name); retcode = -RIG_EPOWER; } else