Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: RemoteIR TextLCD linetrace
Diff: main.cpp
- Revision:
- 51:2d35f207d217
- Parent:
- 50:8843bee40df5
- Child:
- 52:b599247d4a02
--- a/main.cpp Tue Sep 01 05:38:46 2020 +0000
+++ b/main.cpp Tue Sep 01 08:00:17 2020 +0000
@@ -1005,9 +1005,9 @@
strcat(webbuff, "for(var m=0;m<11;m++){button_9[m].disabled=true;}");
strcat(webbuff, "var xhr = new XMLHttpRequest();");
strcat(webbuff, "xhr.open(\"GET\", url);");
+ strcat
strcat(webbuff, "xhr.onreadystatechange = function(){");
- //strcat(webbuff, "if(this.readyState == 4 && this.status == 200){");
- strcat(webbuff, "if(this.readyState == 4){");
+ strcat(webbuff, "if(this.readyState == 4 || this.status == 200){");
strcat(webbuff, "for(var m=0;m<11;m++){button_9[m].disabled=false;}");
strcat(webbuff, "}");
strcat(webbuff, "};");