Fix Xiao nRF52840 repeater compile failure
Compile fails due to user_btn not declared in board target. Fixes: - Add MomentaryButton declaration for user_btn in variants/xiao_nrf52/target.cpp - Add momentary button helper include in variants/xiao_nrf52/target.h - Add extern linkage for MomentaryButton -> user_btn in variants/xiao_nrf52/target.h
This commit is contained in:
1 parent
2a38f3f364
commit
5920b28f33
3 files changed
+4
-1
No files matched your search
@@ -4,6 +4,7 @@
|
||||
|
||||
#ifdef DISPLAY_CLASS
|
||||
DISPLAY_CLASS display;
|
||||
MomentaryButton user_btn(PIN_USER_BTN, 1000, true, true);
|
||||
#endif
|
||||
|
||||
XiaoNrf52Board board;
|
||||
|
||||
Reference in new issue
Block a user