11.8:更改了一些bug

This commit is contained in:
2025-11-08 01:32:24 +08:00
parent 3e3e96e017
commit 998b8a45d0
6 changed files with 164 additions and 132 deletions

View File

@@ -1,8 +1,22 @@
#include "LoRa.h"
void vLoRaConnectionPkt(void)
void vLoRaConnectionPkt(uint8_t ucNodeId)
{
vUsart3SendArray((uint8_t *)&xLoRaGateConfig, 3);
if (ucNodeId == xLoRaNode1Config.ucLoRaNode1Identifier)
{
/* code */
vUsart3SendArray((uint8_t *)&xLoRaNode1Config, 3);
}
else if (ucNodeId == xLoRaNode2Config.ucLoRaNode2Identifier)
{
/* code */
vUsart3SendArray((uint8_t *)&xLoRaNode2Config, 3);
}
else
{
/* code */
vUsart3SendArray((uint8_t *)&xLoRaGateConfig, 3);
}
}
/**