@@ -142,7 +142,9 @@ void signerPresentation(MyMessage &msg, uint8_t destination) {
142
142
SIGN_DEBUG (PSTR (" Whitelisting required\n " ));
143
143
#endif
144
144
145
- _sendRoute (msg);
145
+ if (!_sendRoute (msg)) {
146
+ SIGN_DEBUG (PSTR (" Failed to transmit signing presentation!" ));
147
+ }
146
148
147
149
#if defined(MY_SIGNING_FEATURE)
148
150
// If we do support signing, wait for the gateway to tell us how it prefer us to transmit our messages
@@ -164,7 +166,9 @@ bool signerProcessInternal(MyMessage &msg) {
164
166
prepareSigningPresentation (msg, sender);
165
167
SIGN_DEBUG (PSTR (" Informing node %d that we do not require signatures because we do not support it\n " ),
166
168
sender);
167
- _sendRoute (msg);
169
+ if (!_sendRoute (msg)) {
170
+ SIGN_DEBUG (PSTR (" Failed to transmit signing presentation!" ));
171
+ }
168
172
return true ; // No need to further process I_SIGNING_PRESENTATION in this case
169
173
}
170
174
#elif defined(MY_SIGNING_FEATURE)
@@ -182,9 +186,12 @@ bool signerProcessInternal(MyMessage &msg) {
182
186
#if defined(MY_SIGNING_ATSHA204)
183
187
if (signerAtsha204GetNonce (msg)) {
184
188
#endif
185
- SIGN_DEBUG (PSTR (" Transmittng nonce\n " ));
186
- _sendRoute (build (msg, _nc.nodeId , msg.sender , NODE_SENSOR_ID,
187
- C_INTERNAL, I_NONCE_RESPONSE, false ));
189
+ if (!_sendRoute (build (msg, _nc.nodeId , msg.sender , NODE_SENSOR_ID,
190
+ C_INTERNAL, I_NONCE_RESPONSE, false ))) {
191
+ SIGN_DEBUG (PSTR (" Failed to transmit nonce!\n " ));
192
+ } else {
193
+ SIGN_DEBUG (PSTR (" Transmitted nonce\n " ));
194
+ }
188
195
} else {
189
196
SIGN_DEBUG (PSTR (" Failed to generate nonce!\n " ));
190
197
}
@@ -248,7 +255,9 @@ bool signerProcessInternal(MyMessage &msg) {
248
255
} else {
249
256
SIGN_DEBUG (PSTR (" Informing node %d that we do not require whitelisting\n " ), sender);
250
257
}
251
- _sendRoute (msg);
258
+ if (!_sendRoute (msg)) {
259
+ SIGN_DEBUG (PSTR (" Failed to transmit signing presentation!" ));
260
+ }
252
261
#endif // MY_GATEWAY_FEATURE
253
262
return true ; // No need to further process I_SIGNING_PRESENTATION
254
263
} else if (msg.type == I_NONCE_RESPONSE) {
0 commit comments