Browse Source

lights: terminal output specific values

mcspr-patch-1
Maxim Prokhorov 3 years ago
parent
commit
ec5311c850
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      code/espurna/light.cpp

+ 2
- 2
code/espurna/light.cpp View File

@ -1629,7 +1629,7 @@ void _lightInitCommands() {
_lightAdjustKelvin(ctx.argv[1].c_str()); _lightAdjustKelvin(ctx.argv[1].c_str());
lightUpdate(); lightUpdate();
} }
ctx.output.printf("%s\n", lightColor().c_str());
ctx.output.printf("%ld\n", _toKelvin(_light_mireds));
terminalOK(ctx); terminalOK(ctx);
}); });
@ -1638,7 +1638,7 @@ void _lightInitCommands() {
_lightAdjustMireds(ctx.argv[1]); _lightAdjustMireds(ctx.argv[1]);
lightUpdate(); lightUpdate();
} }
ctx.output.printf("%s\n", lightColor().c_str());
ctx.output.printf("%ld\n", _light_mireds);
terminalOK(ctx); terminalOK(ctx);
}); });


Loading…
Cancel
Save