@@ -109,7 +109,6 @@ void ESBNetwork<radio_t>::begin(uint8_t _channel, uint16_t _node_address)
109
109
uint8_t i = NUM_PIPES;
110
110
uint8_t address[5 ];
111
111
while (i--) {
112
- memset (address, 0xCC , 5 );
113
112
pipe_address (_node_address, i, address);
114
113
radio.openReadingPipe (i, address);
115
114
}
@@ -1016,7 +1015,7 @@ bool ESBNetwork<radio_t>::write_to_pipe(uint16_t node, uint8_t pipe, bool multic
1016
1015
bool ok = false ;
1017
1016
1018
1017
if (!(networkFlags & FLAG_FAST_FRAG) || (frame_buffer[6 ] == NETWORK_FIRST_FRAGMENT && networkFlags & FLAG_FAST_FRAG)) {
1019
- uint8_t address[5 ] = { 0xCC } ;
1018
+ uint8_t address[5 ];
1020
1019
pipe_address (node, pipe, address);
1021
1020
radio.stopListening (address);
1022
1021
radio.setAutoAck (0 , !multicast);
@@ -1189,7 +1188,7 @@ void ESBNetwork<radio_t>::multicastLevel(uint8_t level)
1189
1188
{
1190
1189
_multicast_level = level;
1191
1190
radio.stopListening ();
1192
- uint8_t address[5 ] = { 0xCC } ;
1191
+ uint8_t address[5 ];
1193
1192
pipe_address (levelToAddress (level), 0 , address);
1194
1193
radio.openReadingPipe (0 , address);
1195
1194
radio.startListening ();
@@ -1233,6 +1232,7 @@ void ESBNetwork<radio_t>::pipe_address(uint16_t node, uint8_t pipe, uint8_t* add
1233
1232
#endif
1234
1233
#endif
1235
1234
};
1235
+ memset (address, 0xCC , 5 );
1236
1236
uint8_t * out = address;
1237
1237
1238
1238
// Translate the address to use our optimally chosen radio address bytes
0 commit comments