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 <algernon@keyboard.io>
pull/389/head
Gergely Nagy 6 years ago
parent d04f5f7e75
commit 38b8230c30
No known key found for this signature in database
GPG Key ID: AC1E90BAC433F68F

@ -24,6 +24,7 @@ The extension provides a `HostOS` singleton object.
```c++
#include <Kaleidoscope.h>
#include <Kaleidoscope-EEPROM-Settings.h>
#include <Kaleidoscope-HostOS.h>
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.

@ -15,6 +15,8 @@
* this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <Kaleidoscope.h>
#include <Kaleidoscope-EEPROM-Settings.h>
#include <Kaleidoscope-HostOS.h>
// *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);

Loading…
Cancel
Save