Skip to content

Commit

Permalink
allow default radio type via a define
Browse files Browse the repository at this point in the history
  • Loading branch information
cpainchaud committed Jul 12, 2021
1 parent f9f6e28 commit 87e5dff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion RFLink/1_Radio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ enum RssiThresholdTypesEnum {

namespace RFLink { namespace Radio {

HardwareType hardware = HardwareType::HW_basic_t;
HardwareType hardware = RFLink_default_Radio_HardwareType;
bool hardwareProperlyInitialized = false;


Expand Down
4 changes: 4 additions & 0 deletions RFLink/1_Radio.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ namespace RFLink { namespace Radio {
HW_SX1276_t,
HW_EOF_t,
};
#ifndef RFLink_default_Radio_HardwareType
#define RFLink_default_Radio_HardwareType HardwareType::HW_basic_t
#endif

extern HardwareType hardware;

extern bool hardwareProperlyInitialized;
Expand Down

0 comments on commit 87e5dff

Please sign in to comment.