Added warning for low-end platforms (Uno etc.)

This commit is contained in:
jgromes 2023-11-18 15:07:19 +01:00
parent bd1fbb3b0a
commit 615cebcf6b
2 changed files with 9 additions and 0 deletions

View file

@ -83,6 +83,10 @@
// Arduino AVR boards (except for megaAVR) - Uno, Mega etc.
#define RADIOLIB_PLATFORM "Arduino AVR"
#if !(defined(__AVR_ATmega1280__) || defined(__AVR_ATmega2560__) || defined(__AVR_ATmega1284__) || defined(__AVR_ATmega1284P__))
#define RADIOLIB_LOWEND_PLATFORM
#endif
#elif defined(ESP8266)
// ESP8266 boards
#define RADIOLIB_PLATFORM "ESP8266"

View file

@ -70,6 +70,11 @@
#warning "RadioLib might not be compatible with this Arduino board - check supported platforms at https://github.com/jgromes/RadioLib!"
#endif
// print warning for low-end platforms
#if defined(RADIOLIB_LOWEND_PLATFORM)
#warning "Low-end platform detected, stability issues are likely!"
#endif
#include "modules/CC1101/CC1101.h"
#include "modules/LLCC68/LLCC68.h"
#include "modules/nRF24/nRF24.h"