diff --git a/rigs/yaesu/newcat.c b/rigs/yaesu/newcat.c index 68356d3b8..601db0c65 100644 --- a/rigs/yaesu/newcat.c +++ b/rigs/yaesu/newcat.c @@ -3557,9 +3557,8 @@ int newcat_set_powerstat(RIG *rig, powerstat_t status) case RIG_POWER_OFF: case RIG_POWER_STANDBY: - ps = '0'; - write_block(&state->rigport, (unsigned char *) "PS0;", 4); - break; + retval = write_block(&state->rigport, (unsigned char *) "PS0;", 4); + RETURNFUNC(retval); default: RETURNFUNC(-RIG_ENAVAIL); diff --git a/rigs/yaesu/newcat.h b/rigs/yaesu/newcat.h index 1a5181d39..441914ca0 100644 --- a/rigs/yaesu/newcat.h +++ b/rigs/yaesu/newcat.h @@ -50,7 +50,7 @@ typedef char ncboolean; /* shared function version */ -#define NEWCAT_VER "20230322" +#define NEWCAT_VER "20230328" /* Hopefully large enough for future use, 128 chars plus '\0' */ #define NEWCAT_DATA_LEN 129