Do nothing more after radio initialization fails.
Thanks @thozza
This commit is contained in:
@@ -102,7 +102,8 @@ void MySensor::begin(void (*_msgCallback)(const MyMessage &), uint8_t _nodeId, b
|
|||||||
|
|
||||||
// Setup radio
|
// Setup radio
|
||||||
if (!radio.init()) {
|
if (!radio.init()) {
|
||||||
debug(PSTR("radio initialization failed!"));
|
debug(PSTR("radio init fail\n"));
|
||||||
|
while(1); // Nothing more we can do
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef MY_SIGNING_FEATURE
|
#ifdef MY_SIGNING_FEATURE
|
||||||
|
|||||||
Reference in New Issue
Block a user