From 2201f3468a5adc91238c99e34a0657795dc63b9c Mon Sep 17 00:00:00 2001 From: Khoi Hoang <57012152+khoih-prog@users.noreply.github.com> Date: Fri, 4 Mar 2022 20:47:14 -0500 Subject: [PATCH] v1.2.2 to fix `DutyCycle` bug, etc. ### Releases v1.2.2 1. Fix `DutyCycle` bug. Check [float precisison of DutyCycle only sometimes working #3](https://github.com/khoih-prog/SAMD_Slow_PWM/issues/3) 2. Fix `New Period` display bug. Check [random dropouts #4](https://github.com/khoih-prog/SAMD_Slow_PWM/issues/4) 3. Update examples --- src/SAMDUE_Slow_PWM_ISR_Impl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SAMDUE_Slow_PWM_ISR_Impl.h b/src/SAMDUE_Slow_PWM_ISR_Impl.h index 86a4eef..8777c8a 100644 --- a/src/SAMDUE_Slow_PWM_ISR_Impl.h +++ b/src/SAMDUE_Slow_PWM_ISR_Impl.h @@ -236,7 +236,7 @@ bool SAMDUE_SLOW_PWM_ISR::modifyPWMChannel_Period(const uint8_t& channelNum, con SAM_DUE_PWM[channelNum].newOnTime = ( period * dutycycle ) / 100; PWM_LOGINFO0("Channel : "); PWM_LOGINFO0(channelNum); - PWM_LOGINFO0("\tNew Period : "); PWM_LOGINFO0(SAM_DUE_PWM[channelNum].newPeriod); + PWM_LOGINFO0("\t Period : "); PWM_LOGINFO0(period); PWM_LOGINFO0("\t\tOnTime : "); PWM_LOGINFO0(SAM_DUE_PWM[channelNum].newOnTime); PWM_LOGINFO0("\tStart_Time : "); PWM_LOGINFOLN0(SAM_DUE_PWM[channelNum].prevTime);