mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-09 16:21:45 +00:00
add tests for ATcmd driver, fix some warnings
This commit is contained in:
1 parent
8fb3aa26cd
commit
cee80a8391
8 files changed
+266
-56
No files matched your search
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user