Andrew Boyson / web

Dependents:   oldheating gps motorhome heating

Committer:
andrewboyson
Date:
Fri May 03 10:36:38 2019 +0000
Revision:
115:24cb6e84ddd6
Parent:
114:900e33dfa460
Child:
118:53430a2a2595
Changed firmware reset to call the new restart routine rather than directly calling the semihost reset.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
andrewboyson 47:cf7d4c34158e 1 #include "http.h"
andrewboyson 115:24cb6e84ddd6 2 #include "restart.h"
andrewboyson 114:900e33dfa460 3 #include "web-pages-base.h"
andrewboyson 46:1822fdbe6c0c 4
andrewboyson 103:91194cc19bbb 5 void WebFirmwareQuery(char* pQuery)
andrewboyson 46:1822fdbe6c0c 6 {
andrewboyson 46:1822fdbe6c0c 7 while (pQuery)
andrewboyson 46:1822fdbe6c0c 8 {
andrewboyson 46:1822fdbe6c0c 9 char* pName;
andrewboyson 46:1822fdbe6c0c 10 char* pValue;
andrewboyson 46:1822fdbe6c0c 11 pQuery = HttpQuerySplit(pQuery, &pName, &pValue);
andrewboyson 63:daad0cbb4e8e 12 int value = HttpQueryValueAsInt(pValue);
andrewboyson 46:1822fdbe6c0c 13
andrewboyson 115:24cb6e84ddd6 14 if (HttpSameStr(pName, "restart")) Restart();
andrewboyson 46:1822fdbe6c0c 15 }
andrewboyson 46:1822fdbe6c0c 16 }