From a747d6c8cf0a496cd291d2831d43f0d12278128a Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Sun, 19 Mar 2017 11:12:12 +0100 Subject: [PATCH] Use the new Focus helpers Signed-off-by: Gergely Nagy --- src/Kaleidoscope/EEPROM-Keymap.cpp | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/src/Kaleidoscope/EEPROM-Keymap.cpp b/src/Kaleidoscope/EEPROM-Keymap.cpp index 91a42d49..f80da400 100644 --- a/src/Kaleidoscope/EEPROM-Keymap.cpp +++ b/src/Kaleidoscope/EEPROM-Keymap.cpp @@ -18,6 +18,7 @@ #include #include +#include namespace KaleidoscopePlugins { uint16_t EEPROMKeymap::keymapBase; @@ -75,18 +76,9 @@ namespace KaleidoscopePlugins { void EEPROMKeymap::printKey (Key k) { - if (k.flags < 10) - Serial.print (F(" ")); - if (k.flags < 100) - Serial.print (F(" ")); - Serial.print (k.flags); - Serial.print (F(" ")); - - if (k.keyCode < 10) - Serial.print (F(" ")); - if (k.keyCode < 100) - Serial.print (F(" ")); - Serial.print (k.keyCode); + ::Focus.printNumber (k.flags); + ::Focus.printSpace (); + ::Focus.printNumber (k.keyCode); } bool