mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-10-29 17:54:14 +08:00
Delay reset, to allow TCP reset to be transmitted.
This commit is contained in:
1 parent
0e2a5fb7bc
commit
5d731393f1
1 file changed
+1
@@ -603,6 +603,7 @@ void httpd_appcall(void)
|
||||
send_mtu(); // dummy response
|
||||
} else if (is_word(q, "/reset")) {
|
||||
uip_close();
|
||||
delay(1000); //wait for the close packet to be sent, otherwise the browser will retry
|
||||
reset_chip();
|
||||
} else {
|
||||
send_not_found();
|
||||
|
||||
Reference in new issue
Block a user