From 02d46a1385edf49e0df0720ccc354e539b390b12 Mon Sep 17 00:00:00 2001 From: Jochen Vothknecht <jochen3120@gmail.com> Date: Mon, 20 Jun 2022 09:04:26 +0200 Subject: [PATCH] ST: Polish formatting and stuff --- CLC-qthing/SiliconTorch/Service/FxCyanF.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/CLC-qthing/SiliconTorch/Service/FxCyanF.cpp b/CLC-qthing/SiliconTorch/Service/FxCyanF.cpp index d85ee3b..e85e890 100644 --- a/CLC-qthing/SiliconTorch/Service/FxCyanF.cpp +++ b/CLC-qthing/SiliconTorch/Service/FxCyanF.cpp @@ -47,8 +47,6 @@ namespace SiliconTorch { frq = NVSExplorer::NVSExplorer::instance().getUnsignedInt(getNameSpace(), "frequency", frq); res = NVSExplorer::NVSExplorer::instance().getUnsignedInt(getNameSpace(), "resolution", res); - - ESP_LOGI(TAG, "Configuring: FxCyanF{ frequency[ %d Hz ] resolution[ %d Bit ] }", frq, res); fxCyan->setFrqRes(frq, res); @@ -65,12 +63,11 @@ namespace SiliconTorch { // NaN == "no value stored" or any other reading error if (std::isnan(pwm)) pwm = 0.0f; - if (gpio != 0xFF) { // key exists + if (gpio < 0xFF) { // key exists if ( fxCyan->addChannel(gpio, pwm) ) { // channel creation successful - ESP_LOGI(TAG, "Configuring: FxCyanF{ channel[ %d ] gpio[ %d ] pwm[ %f ] }", ch, gpio, pwm); - + ESP_LOGI(TAG, "Configuring: FxCyanF{ channel[ %d ] gpio[ %d ] pwm[ %4.3f ] }", ch, gpio, pwm); fxCyan->setPWM(ch, pwm); } else { -- GitLab