Skip to content

Commit 918cf0e

Browse files
committed
drivers/nutdrv_qx_voltronic-qs-hex.c, NEWS.adoc: fix format string for ups.load [#3532]
Signed-off-by: Jim Klimov <jimklimov+nut@gmail.com>
1 parent a102c60 commit 918cf0e

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

NEWS.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ https://github.com/networkupstools/nut/milestone/13
7979
an initialization failure with certain UPS models (e.g., SVC
8080
VP-1250-LCD) that return a 7-byte report instead of the standard 6 bytes,
8181
allowing the Megatec payload to be successfully reconstructed. [PR #3485]
82+
* In `Voltronic-QS-Hex` subdriver, the format string sanity check added in
83+
recent NUT releases caught a mismatch in `ups.load` reading. [issue #3532]
8284

8385
- Introduced a new NUT driver named `ragtech` which provides support for the
8486
Ragtech "Easy Pro" family of line-interactive UPS units (also sold under

drivers/nutdrv_qx_voltronic-qs-hex.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525

2626
#include "nutdrv_qx_voltronic-qs-hex.h"
2727

28-
#define VOLTRONIC_QS_HEX_VERSION "Voltronic-QS-Hex 0.11"
28+
#define VOLTRONIC_QS_HEX_VERSION "Voltronic-QS-Hex 0.12"
2929

3030
/* Support functions */
3131
static int voltronic_qs_hex_claim(void);
@@ -83,7 +83,7 @@ static item_t voltronic_qs_hex_qx2nut[] = {
8383

8484
{ "input.voltage", 0, NULL, "QS\r", "", 47, '#', "", 1, 7, "%.1f", 0, NULL, voltronic_qs_hex_preprocess_qs_answer, voltronic_qs_hex_input_output_voltage },
8585
{ "output.voltage", 0, NULL, "QS\r", "", 47, '#', "", 9, 15, "%.1f", 0, NULL, voltronic_qs_hex_preprocess_qs_answer, voltronic_qs_hex_input_output_voltage },
86-
{ "ups.load", 0, NULL, "QS\r", "", 47, '#', "", 17, 18, "%d", 0, NULL, voltronic_qs_hex_preprocess_qs_answer, voltronic_qs_hex_load },
86+
{ "ups.load", 0, NULL, "QS\r", "", 47, '#', "", 17, 18, "%ld", 0, NULL, voltronic_qs_hex_preprocess_qs_answer, voltronic_qs_hex_load },
8787
{ "output.frequency", 0, NULL, "QS\r", "", 47, '#', "", 20, 30, "%.1f", 0, NULL, voltronic_qs_hex_preprocess_qs_answer, voltronic_qs_hex_frequency },
8888
{ "battery.voltage", 0, NULL, "QS\r", "", 47, '#', "", 32, 36, "%.2f", 0, NULL, voltronic_qs_hex_preprocess_qs_answer, voltronic_qs_hex_battery_voltage },
8989
/* Status bits */

0 commit comments

Comments
 (0)