[LoRaWAN] Silence class-memaccess warning

pull/1222/head
jgromes 2024-09-10 20:24:00 +01:00
rodzic f7f0b62e7f
commit 78a6897e1b
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -2328,7 +2328,7 @@ void LoRaWANNode::postprocessMacLinkAdr(uint8_t* ack, uint8_t cLen) {
int16_t LoRaWANNode::getMacCommand(uint8_t cid, LoRaWANMacCommand_t* cmd) {
for(size_t i = 0; i < RADIOLIB_LORAWAN_NUM_MAC_COMMANDS; i++) {
if(MacTable[i].cid == cid) {
memcpy(cmd, &MacTable[i], sizeof(LoRaWANMacCommand_t));
memcpy((void*)cmd, (void*)&MacTable[i], sizeof(LoRaWANMacCommand_t));
return(RADIOLIB_ERR_NONE);
}
}