diff --git a/src/kaleidoscope/device/dygma/Defy_wireless.cpp b/src/kaleidoscope/device/dygma/Defy_wireless.cpp index e8db3d4..15a578b 100644 --- a/src/kaleidoscope/device/dygma/Defy_wireless.cpp +++ b/src/kaleidoscope/device/dygma/Defy_wireless.cpp @@ -15,6 +15,7 @@ * You should have received a copy of the GNU General Public License along with * this program. If not, see . */ +#ifdef ARDUINO_ARCH_NRF52 #include "kaleidoscope/Runtime.h" #include @@ -753,3 +754,4 @@ void DefyNrf::settings::keyscanInterval(uint16_t interval) } // namespace dygma } // namespace device } // namespace kaleidoscope +#endif \ No newline at end of file diff --git a/src/kaleidoscope/device/dygma/Defy_wireless.h b/src/kaleidoscope/device/dygma/Defy_wireless.h index 18764ef..0fe7d69 100644 --- a/src/kaleidoscope/device/dygma/Defy_wireless.h +++ b/src/kaleidoscope/device/dygma/Defy_wireless.h @@ -15,6 +15,7 @@ * You should have received a copy of the GNU General Public License along with * this program. If not, see . */ +#ifdef ARDUINO_ARCH_NRF52 #pragma once @@ -407,3 +408,4 @@ typedef kaleidoscope::device::dygma::DefyNrf Device; r4c0, r4c1, r4c2, r4c3, r4c4, r4c5, r4c6, r4c7, r4c8, r4c9, r4c10, r4c11, r4c12, r4c13, r4c14, r4c15 #endif // __DEFY_WIRELESS_H__ +#endif \ No newline at end of file diff --git a/src/kaleidoscope/device/dygma/defy_wireless/Hand.cpp b/src/kaleidoscope/device/dygma/defy_wireless/Hand.cpp index e351c28..3c16235 100644 --- a/src/kaleidoscope/device/dygma/defy_wireless/Hand.cpp +++ b/src/kaleidoscope/device/dygma/defy_wireless/Hand.cpp @@ -1,3 +1,4 @@ +#ifdef ARDUINO_ARCH_NRF52 #include "Hand.h" #include "Defy_wireless.h" @@ -102,3 +103,4 @@ Devices Hand::getConnectedDevice() const } // namespace dygma } // namespace device } // namespace kaleidoscope +#endif \ No newline at end of file diff --git a/src/kaleidoscope/device/dygma/defy_wireless/Hand.h b/src/kaleidoscope/device/dygma/defy_wireless/Hand.h index f797078..304c4ce 100644 --- a/src/kaleidoscope/device/dygma/defy_wireless/Hand.h +++ b/src/kaleidoscope/device/dygma/defy_wireless/Hand.h @@ -15,6 +15,7 @@ * You should have received a copy of the GNU General Public License along with * this program. If not, see . */ +#ifdef ARDUINO_ARCH_NRF52 #pragma once @@ -85,3 +86,4 @@ class Hand { } // namespace dygma } // namespace device } // namespace kaleidoscope +#endif \ No newline at end of file diff --git a/src/kaleidoscope/device/dygma/defy_wireless/TWI.cpp b/src/kaleidoscope/device/dygma/defy_wireless/TWI.cpp index 6820318..61f54c4 100644 --- a/src/kaleidoscope/device/dygma/defy_wireless/TWI.cpp +++ b/src/kaleidoscope/device/dygma/defy_wireless/TWI.cpp @@ -1,3 +1,4 @@ +#ifdef ARDUINO_ARCH_NRF52 #include "TWI.h" #include "kaleidoscope/util/crc16.h" @@ -275,3 +276,4 @@ void TWI::recovery(void) } } +#endif \ No newline at end of file diff --git a/src/kaleidoscope/device/dygma/defy_wireless/TWI.h b/src/kaleidoscope/device/dygma/defy_wireless/TWI.h index f5c5c45..c10f532 100644 --- a/src/kaleidoscope/device/dygma/defy_wireless/TWI.h +++ b/src/kaleidoscope/device/dygma/defy_wireless/TWI.h @@ -15,6 +15,7 @@ * You should have received a copy of the GNU General Public License along with * this program. If not, see . */ +#ifdef ARDUINO_ARCH_NRF52 #pragma once @@ -68,3 +69,4 @@ class TWI } } +#endif \ No newline at end of file