Skip to content

Commit

Permalink
[SYS] Remove unnecessaries ESP8266 ESP32 macros
Browse files Browse the repository at this point in the history
  • Loading branch information
1technophile committed Apr 12, 2024
1 parent 2065d57 commit 11babb2
Show file tree
Hide file tree
Showing 11 changed files with 324 additions and 505 deletions.
2 changes: 1 addition & 1 deletion environments.ini
Original file line number Diff line number Diff line change
Expand Up @@ -1748,4 +1748,4 @@ build_flags =
'-DLED_SEND_RECEIVE_ON=0'
'-DGateway_Name="OMG_ESP32_BLE"'
'-DUSE_BLUFI=1'
custom_description = Regular BLE gateway with adaptive scanning activated, automatically adapts the scan parameters depending on your devices
custom_description = Regular BLE gateway based on esp-idf with adaptive scanning activated, automatically adapts the scan parameters depending on your devices
18 changes: 8 additions & 10 deletions main/ZcommonRF.ino
Original file line number Diff line number Diff line change
Expand Up @@ -71,32 +71,30 @@ bool validFrequency(float mhz) {
int currentReceiver = ACTIVE_NONE;

# if !defined(ZgatewayRFM69) && !defined(ZactuatorSomfy)
# if defined(ESP8266) || defined(ESP32)
// Check if a receiver is available
bool validReceiver(int receiver) {
switch (receiver) {
# ifdef ZgatewayPilight
# ifdef ZgatewayPilight
case ACTIVE_PILIGHT:
return true;
# endif
# ifdef ZgatewayRF
# endif
# ifdef ZgatewayRF
case ACTIVE_RF:
return true;
# endif
# ifdef ZgatewayRTL_433
# endif
# ifdef ZgatewayRTL_433
case ACTIVE_RTL:
return true;
# endif
# ifdef ZgatewayRF2
# endif
# ifdef ZgatewayRF2
case ACTIVE_RF2:
return true;
# endif
# endif
default:
Log.error(F("ERROR: stored receiver %d not available" CR), receiver);
}
return false;
}
# endif
# endif

void disableCurrentReceiver() {
Expand Down
Loading

0 comments on commit 11babb2

Please sign in to comment.