mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-08-30 14:52:51 +08:00
Delay reset, to allow TCP reset to be transmitted.
This commit is contained in:
@@ -603,6 +603,7 @@ void httpd_appcall(void)
|
|||||||
send_mtu(); // dummy response
|
send_mtu(); // dummy response
|
||||||
} else if (is_word(q, "/reset")) {
|
} else if (is_word(q, "/reset")) {
|
||||||
uip_close();
|
uip_close();
|
||||||
|
delay(1000); //wait for the close packet to be sent, otherwise the browser will retry
|
||||||
reset_chip();
|
reset_chip();
|
||||||
} else {
|
} else {
|
||||||
send_not_found();
|
send_not_found();
|
||||||
|
|||||||
Reference in New Issue
Block a user