Use the new Focus helpers

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
pull/365/head
Gergely Nagy 8 years ago
parent 5a7601bb30
commit a747d6c8cf

@ -18,6 +18,7 @@
#include <Kaleidoscope-EEPROM-Settings.h> #include <Kaleidoscope-EEPROM-Settings.h>
#include <Kaleidoscope-EEPROM-Keymap.h> #include <Kaleidoscope-EEPROM-Keymap.h>
#include <Kaleidoscope-Focus.h>
namespace KaleidoscopePlugins { namespace KaleidoscopePlugins {
uint16_t EEPROMKeymap::keymapBase; uint16_t EEPROMKeymap::keymapBase;
@ -75,18 +76,9 @@ namespace KaleidoscopePlugins {
void void
EEPROMKeymap::printKey (Key k) { EEPROMKeymap::printKey (Key k) {
if (k.flags < 10) ::Focus.printNumber (k.flags);
Serial.print (F(" ")); ::Focus.printSpace ();
if (k.flags < 100) ::Focus.printNumber (k.keyCode);
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);
} }
bool bool

Loading…
Cancel
Save