From ec5311c850413e9597f38fdd0cd5fb723122f1ba Mon Sep 17 00:00:00 2001 From: Maxim Prokhorov Date: Tue, 9 Feb 2021 21:36:01 +0300 Subject: [PATCH] lights: terminal output specific values --- code/espurna/light.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/espurna/light.cpp b/code/espurna/light.cpp index 48d23d65..d8a52182 100644 --- a/code/espurna/light.cpp +++ b/code/espurna/light.cpp @@ -1629,7 +1629,7 @@ void _lightInitCommands() { _lightAdjustKelvin(ctx.argv[1].c_str()); lightUpdate(); } - ctx.output.printf("%s\n", lightColor().c_str()); + ctx.output.printf("%ld\n", _toKelvin(_light_mireds)); terminalOK(ctx); }); @@ -1638,7 +1638,7 @@ void _lightInitCommands() { _lightAdjustMireds(ctx.argv[1]); lightUpdate(); } - ctx.output.printf("%s\n", lightColor().c_str()); + ctx.output.printf("%ld\n", _light_mireds); terminalOK(ctx); });