Skip to content

Commit 98a4607

Browse files
authored
Merge pull request #2176 from EchterAgo/apc_setvar_return_fix
apcsmart-old: Fix return value for not writable variable
2 parents bf648db + ad2df4c commit 98a4607

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/apcsmart-old.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#include "nut_stdint.h"
2626

2727
#define DRIVER_NAME "APC Smart protocol driver (old)"
28-
#define DRIVER_VERSION "2.32"
28+
#define DRIVER_VERSION "2.33"
2929

3030
static upsdrv_info_t table_info = {
3131
"APC command table",
@@ -1322,7 +1322,7 @@ static int setvar(const char *varname, const char *val)
13221322

13231323
if ((vt->flags & APC_RW) == 0) {
13241324
upslogx(LOG_WARNING, "setvar: [%s] is not writable", varname);
1325-
return STAT_SET_UNKNOWN;
1325+
return STAT_SET_INVALID;
13261326
}
13271327

13281328
if (vt->flags & APC_ENUM)

0 commit comments

Comments
 (0)