From 38b8230c3096a897b4eae0b68f8dd972c44baf6f Mon Sep 17 00:00:00 2001 From: Gergely Nagy Date: Wed, 17 Oct 2018 10:43:50 +0200 Subject: [PATCH] Explicitly initialize EEPROMSettings As the plugin now depends on EEPROMSettings, document that it needs to be initialized first, and adjust the example accordingly too. Signed-off-by: Gergely Nagy --- README.md | 6 +++++- examples/HostOS/HostOS.ino | 4 +++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b164560d..20d15e8b 100644 --- a/README.md +++ b/README.md @@ -24,6 +24,7 @@ The extension provides a `HostOS` singleton object. ```c++ #include +#include #include void someFunction(void) { @@ -35,7 +36,7 @@ void someFunction(void) { } } -KALEIDOSCOPE_INIT_PLUGINS(HostOS) +KALEIDOSCOPE_INIT_PLUGINS(EEPROMSettings, HostOS) void setup(void) { Kaleidoscope.setup (); @@ -96,3 +97,6 @@ these reasons, this functionality was removed. The `autoDetect()` method is now a no-op, and is deprecated. The `Kaleidoscope/HostOS-select.h` header is similarly obsolete. Both of these produce deprecation messages now, and will be removed by 2019-01-14. + +Furthermore, `HostOS` now depends on `Kaleidoscope-EEPROM-Settings`, that plugin +should be initialized first. diff --git a/examples/HostOS/HostOS.ino b/examples/HostOS/HostOS.ino index 9fb1599e..3315c976 100644 --- a/examples/HostOS/HostOS.ino +++ b/examples/HostOS/HostOS.ino @@ -15,6 +15,8 @@ * this program. If not, see . */ +#include +#include #include // *INDENT-OFF* @@ -38,7 +40,7 @@ const Key keymaps[][ROWS][COLS] PROGMEM = { }; // *INDENT-ON* -KALEIDOSCOPE_INIT_PLUGINS(HostOS); +KALEIDOSCOPE_INIT_PLUGINS(EEPROMSettings, HostOS); void setup() { Serial.begin(9600);