add tests for ATcmd driver, fix some warnings

This commit is contained in:
Sergio R. Caprile committed 2026-07-02 10:15:50 -03:00
1 parent 8fb3aa26cd
commit cee80a8391
8 files changed
+266 -56

No files matched your search

+1 -1
View File
@@ -306,7 +306,7 @@ static void init_tests(struct mg_mgr *mgr, struct eth *e, struct ipp *ipp,
// setting the Ethernet header
memset(e, 0, sizeof(*e));
memcpy(e->dst, mif->mac, 6 * sizeof(uint8_t));
e->type = mg_htons(ipp->ip4 != NULL ? 0x800 : 0x86dd);
e->type = mg_htons((uint16_t)(ipp->ip4 != NULL ? 0x800 : 0x86dd));
// setting the IP header
#if MG_ENABLE_IPV6