[Nut-upsdev] Masterguard/Phoenixtec USB driver

Edgar Fuß ef at math.uni-bonn.de
Wed Dec 21 19:52:39 GMT 2022


So I finally switched from my patched 2.7.4 to the official 2.8.0 to notice my Masterguard UPSen didn't attach any more.
Apart from an USB problem (I'll write another mail on that subject), the problem turned out that in the qx2nut lookup table, some entries had been prefixed by "experimental." but that change was missed in the claim function.
The attached patch corrects that.
-------------- next part --------------
--- drivers/nutdrv_qx_masterguard.c.orig	2022-04-23 13:56:07.000000000 +0200
+++ drivers/nutdrv_qx_masterguard.c	2022-12-21 18:59:02.186441819 +0100
@@ -935,11 +935,11 @@ static int masterguard_claim(void) {
 	item_t *item;
 	/* mandatory values */
 	char *mandatory[] = {
-		"series",		/* SKIP */
+		"experimental.series",	/* SKIP */
 		"device.model",		/* minimal number of battery packs */
 		"ups.power.nominal",	/* load computation */
 		"ups.id",		/* slave address */
-		"output_voltages",	/* output voltages enum */
+		"experimental.output_voltages",	/* output voltages enum */
 #if 0
 		"battery.packs",	/* battery voltage computation */
 #endif


More information about the Nut-upsdev mailing list