Fix logging of error if initialization of the radio fails

Signed-off-by: Tomas Hozza <thozza@gmail.com>
This commit is contained in:
Tomas Hozza
2015-04-12 21:33:48 +02:00
parent 20c2938d3d
commit 192ccf9896
6 changed files with 11 additions and 15 deletions
+3 -1
View File
@@ -101,7 +101,9 @@ void MySensor::begin(void (*_msgCallback)(const MyMessage &), uint8_t _nodeId, b
isGateway = _nodeId == GATEWAY_ADDRESS;
// Setup radio
radio.init();
if (!radio.init()) {
debug(PSTR("radio initialization failed!"));
}
#ifdef MY_SIGNING_FEATURE
// Read out the signing requirements from EEPROM