diff --git a/CLC-qthing/SiliconTorch/Service/FxCyanF.cpp b/CLC-qthing/SiliconTorch/Service/FxCyanF.cpp index d85ee3b911e610a35f8eded1fe271c013ca4be05..e85e89051e6d66e20872946c386f3701ad722e65 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 {