Skip to content

Commit 7bd79f5

Browse files
committed
Do nothing more after radio initialization fails.
Thanks @thozza
1 parent e30dea7 commit 7bd79f5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libraries/MySensors/MySensor.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,8 @@ void MySensor::begin(void (*_msgCallback)(const MyMessage &), uint8_t _nodeId, b
102102

103103
// Setup radio
104104
if (!radio.init()) {
105-
debug(PSTR("radio initialization failed!"));
105+
debug(PSTR("radio init fail\n"));
106+
while(1); // Nothing more we can do
106107
}
107108

108109
#ifdef MY_SIGNING_FEATURE

0 commit comments

Comments
 (0)