Updated to use the newest Ranges APIs

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
pull/389/head
Gergely Nagy 8 years ago
parent 492c4a2c5a
commit e6543b2011

@ -26,7 +26,7 @@ uint8_t Cycle::cycle_count_;
// --- helpers --- // --- helpers ---
#define isCycle(k) (k.raw == KaleidoscopePlugins::Ranges::CYCLE) #define isCycle(k) (k.raw == kaleidoscope::ranges::CYCLE)
// --- api --- // --- api ---

@ -21,7 +21,7 @@
#include <Kaleidoscope.h> #include <Kaleidoscope.h>
#include <Kaleidoscope-Ranges.h> #include <Kaleidoscope-Ranges.h>
#define Key_Cycle ((Key) { .raw = KaleidoscopePlugins::Ranges::CYCLE }) #define Key_Cycle ((Key) { .raw = kaleidoscope::ranges::CYCLE })
#define cycleThrough(...) ({ \ #define cycleThrough(...) ({ \
static const Key __k[] PROGMEM = { __VA_ARGS__ }; \ static const Key __k[] PROGMEM = { __VA_ARGS__ }; \

Loading…
Cancel
Save