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
@@ -1278,7 +1278,7 @@ static size_t tx_tcp_ctrlresp(struct mg_tcpip_if *ifp, struct pkt *pkt,
}
static size_t tx_tcp_rst(struct mg_tcpip_if *ifp, struct pkt *pkt, bool toack) {
return tx_tcp_ctrlresp(ifp, pkt, toack ? TH_RST : (TH_RST | TH_ACK),
return tx_tcp_ctrlresp(ifp, pkt, (uint8_t)(toack ? TH_RST : (TH_RST | TH_ACK)),
toack ? pkt->tcp->ack : 0);
}