From 7ef84ddc096b37683e156b073a7379cda32eea96 Mon Sep 17 00:00:00 2001 From: Mark Timmings Date: Sat, 5 Nov 2022 16:05:02 +0000 Subject: [PATCH] The logic for the PowerLed appears to be reversed --- M5StackCommon/Core2ToughCommon.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/M5StackCommon/Core2ToughCommon.cs b/M5StackCommon/Core2ToughCommon.cs index 37d49d76..e4e24e5d 100644 --- a/M5StackCommon/Core2ToughCommon.cs +++ b/M5StackCommon/Core2ToughCommon.cs @@ -93,15 +93,15 @@ public static bool PowerLed if (_powerLed) { - // turn ON by setting duty cycle to 100% - _power.Pwm1DutyCycleSetting1 = 10; - _power.Pwm1DutyCycleSetting2 = 10; + // turn ON by setting duty cycle to 0% + _power.Pwm1DutyCycleSetting1 = 0; + _power.Pwm1DutyCycleSetting2 = 0; } else { - // tuen OFF by setting duty cycle to 0% - _power.Pwm1DutyCycleSetting1 = 0; - _power.Pwm1DutyCycleSetting2 = 0; + // turn OFF by setting duty cycle to 100% + _power.Pwm1DutyCycleSetting1 = 10; + _power.Pwm1DutyCycleSetting2 = 10; } } }