From 44ae45076a160903c10d8dd0917b2ad44ccfac10 Mon Sep 17 00:00:00 2001 From: Michel Moriniaux Date: Wed, 3 May 2023 13:11:22 -0700 Subject: [PATCH] bug fixes adjusted cutoff voltage to be compatible with LiFePo4 chargers 14.7V PWM port number description was not incrementing --- Arduino/BigPowerBox/mydefines.h | 2 +- Drivers/BigPowerSwitchServer/SwitchDriver/SwitchHardware..cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Arduino/BigPowerBox/mydefines.h b/Arduino/BigPowerBox/mydefines.h index 0220bfb..55aba79 100644 --- a/Arduino/BigPowerBox/mydefines.h +++ b/Arduino/BigPowerBox/mydefines.h @@ -12,7 +12,7 @@ //----------------------------------------------------------------------- // Constant Definitions //----------------------------------------------------------------------- -#define MAXINVOLTS 14.4 // maximum allowed volts In, shutdown all output ports if exceeded +#define MAXINVOLTS 14.7 // maximum allowed volts In, shutdown all output ports if exceeded #define REFRESH 200 // read port values every REFRESH milliseconds #define TEMPITVL 1 // adjust dew heaters every TEMPITVL minutes #define SERIALPORTSPEED 9600 // 9600, 14400, 19200, 28800, 38400, 57600 diff --git a/Drivers/BigPowerSwitchServer/SwitchDriver/SwitchHardware..cs b/Drivers/BigPowerSwitchServer/SwitchDriver/SwitchHardware..cs index e543570..ffd20f6 100644 --- a/Drivers/BigPowerSwitchServer/SwitchDriver/SwitchHardware..cs +++ b/Drivers/BigPowerSwitchServer/SwitchDriver/SwitchHardware..cs @@ -1219,7 +1219,7 @@ private static void QueryDeviceDescription() feature.maxvalue = 255; feature.unit = null; feature.description = "PWM Port " + pwm; - feature.name = "PWM port " + pwm; + feature.name = "PWM port " + pwm++; deviceFeatures.Add(feature); tl.LogMessage("SH.QueryDeviceDescription", "Added PWM port at index: " + portindex++); havePWM = true;