From f71241f16f13eefe20c2d4420e94e7045d14e31f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9a=20Saviot?= Date: Tue, 9 Apr 2019 15:26:06 +0200 Subject: [PATCH] [ion/bench] Clean Led command --- ion/src/device/bench/command/led.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ion/src/device/bench/command/led.cpp b/ion/src/device/bench/command/led.cpp index 39157faeb..0620eff2f 100644 --- a/ion/src/device/bench/command/led.cpp +++ b/ion/src/device/bench/command/led.cpp @@ -11,22 +11,22 @@ namespace Command { void LED(const char * input) { if (strcmp(input, sON) == 0) { Ion::Device::LED::init(); - Ion::Console::writeLine(sOK); + reply(sOK); return; } if (strcmp(input, sOFF) == 0) { Ion::Device::LED::shutdown(); - Ion::Console::writeLine(sOK); + reply(sOK); return; } if (input == nullptr || input[0] != '0' || input[1] != 'x' || !isHex(input[2]) ||!isHex(input[3]) || !isHex(input[4]) || !isHex(input[5]) || !isHex(input[6]) || !isHex(input[7]) || input[8] != NULL) { - Ion::Console::writeLine(sSyntaxError); + reply(sSyntaxError); return; } uint32_t hexColor = hexNumber(input+2); KDColor ledColor = KDColor::RGB24(hexColor); Ion::LED::setColor(ledColor); - Ion::Console::writeLine(sOK); + reply(sOK); } }