storage::AVREEPROM: Only compile this on AVR

The `AVREEPROM` storage is AVR-specific, and it depends on features and headers
that may not make sense elsewhere. As such, guard it with an `#ifdef`, to only
compile it for AVR-based devices.

Fixes #718.

Signed-off-by: Gergely Nagy <algernon@keyboard.io>
pull/719/head
Gergely Nagy 5 years ago
parent aa5b55e366
commit caaf67f6bb
No known key found for this signature in database
GPG Key ID: AC1E90BAC433F68F

@ -17,6 +17,8 @@
#pragma once #pragma once
#ifdef ARDUINO_ARCH_AVR
#include "kaleidoscope/driver/storage/Base.h" #include "kaleidoscope/driver/storage/Base.h"
#include <EEPROM.h> #include <EEPROM.h>
@ -57,3 +59,5 @@ class AVREEPROM : public kaleidoscope::driver::storage::Base<_StorageProps> {
} }
} }
} }
#endif

Loading…
Cancel
Save