Skip to content
Snippets Groups Projects
Commit 02d46a13 authored by fxk8y's avatar fxk8y :spider:
Browse files

ST: Polish formatting and stuff

parent 24a26f7b
No related branches found
No related tags found
No related merge requests found
...@@ -47,8 +47,6 @@ namespace SiliconTorch { ...@@ -47,8 +47,6 @@ namespace SiliconTorch {
frq = NVSExplorer::NVSExplorer::instance().getUnsignedInt(getNameSpace(), "frequency", frq); frq = NVSExplorer::NVSExplorer::instance().getUnsignedInt(getNameSpace(), "frequency", frq);
res = NVSExplorer::NVSExplorer::instance().getUnsignedInt(getNameSpace(), "resolution", res); 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); fxCyan->setFrqRes(frq, res);
...@@ -65,12 +63,11 @@ namespace SiliconTorch { ...@@ -65,12 +63,11 @@ namespace SiliconTorch {
// NaN == "no value stored" or any other reading error // NaN == "no value stored" or any other reading error
if (std::isnan(pwm)) pwm = 0.0f; 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 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); fxCyan->setPWM(ch, pwm);
} else { } else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment