Skip to content

Commit

Permalink
added flag to defy_wireles files
Browse files Browse the repository at this point in the history
Signed-off-by: noteolvides <[email protected]>
  • Loading branch information
Noteolvides committed Oct 2, 2023
1 parent a04c13a commit 91fce3a
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/kaleidoscope/device/dygma/Defy_wireless.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* You should have received a copy of the GNU General Public License along with
* this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifdef ARDUINO_ARCH_NRF52

#include "kaleidoscope/Runtime.h"
#include <Kaleidoscope-EEPROM-Settings.h>
Expand Down Expand Up @@ -753,3 +754,4 @@ void DefyNrf::settings::keyscanInterval(uint16_t interval)
} // namespace dygma
} // namespace device
} // namespace kaleidoscope
#endif
2 changes: 2 additions & 0 deletions src/kaleidoscope/device/dygma/Defy_wireless.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* You should have received a copy of the GNU General Public License along with
* this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifdef ARDUINO_ARCH_NRF52

#pragma once

Expand Down Expand Up @@ -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
2 changes: 2 additions & 0 deletions src/kaleidoscope/device/dygma/defy_wireless/Hand.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#ifdef ARDUINO_ARCH_NRF52
#include "Hand.h"

#include "Defy_wireless.h"
Expand Down Expand Up @@ -102,3 +103,4 @@ Devices Hand::getConnectedDevice() const
} // namespace dygma
} // namespace device
} // namespace kaleidoscope
#endif
2 changes: 2 additions & 0 deletions src/kaleidoscope/device/dygma/defy_wireless/Hand.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* You should have received a copy of the GNU General Public License along with
* this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifdef ARDUINO_ARCH_NRF52

#pragma once

Expand Down Expand Up @@ -85,3 +86,4 @@ class Hand {
} // namespace dygma
} // namespace device
} // namespace kaleidoscope
#endif
2 changes: 2 additions & 0 deletions src/kaleidoscope/device/dygma/defy_wireless/TWI.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#ifdef ARDUINO_ARCH_NRF52
#include "TWI.h"

#include "kaleidoscope/util/crc16.h"
Expand Down Expand Up @@ -275,3 +276,4 @@ void TWI::recovery(void)
}
}

#endif
2 changes: 2 additions & 0 deletions src/kaleidoscope/device/dygma/defy_wireless/TWI.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
* You should have received a copy of the GNU General Public License along with
* this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifdef ARDUINO_ARCH_NRF52

#pragma once

Expand Down Expand Up @@ -68,3 +69,4 @@ class TWI
}
}

#endif

0 comments on commit 91fce3a

Please sign in to comment.