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-Keymap.h>
#include <Kaleidoscope-Focus.h>
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

Loading…
Cancel
Save