mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-08 16:11:18 +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
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user