@@ -197,8 +197,7 @@ static const char* const navigationIndex =
197197 " <input type=button onclick=\" window.location.href='/sd'\" class=btn value='Show SD Card Contents'>"
198198 " <input type=button onclick=\" window.location.href='/about'\" class=btn value='About'>"
199199 " <input type=button onclick=\" window.location.href='/delete'\" class=btn value='Delete'>"
200- " <input type=button onclick=\" window.location.href='/reboot'\" class=btn value='Reboot'>"
201- " {dev}" ;
200+ " <input type=button onclick=\" window.location.href='/reboot'\" class=btn value='Reboot'>" ;
202201
203202static const char * const httpsRedirect =
204203 " <h3>HTTPS</h3>"
@@ -292,19 +291,6 @@ updateFirmwareList();
292291<h3>File Upload</h3>
293292)"""" ;
294293
295-
296-
297- // #########################################
298- // Development Index
299- // #########################################
300-
301- static const char * const devIndex =
302- " <h3>Display</h3>"
303- " Show Grid<br><input type='checkbox' name='showGrid' {showGrid}>"
304- " Print WLAN password to serial<br><input type='checkbox' name='printWifiPassword' {printWifiPassword}>"
305- " <input type=submit class=btn value=Save>"
306- " <hr>" ;
307-
308294// #########################################
309295// Config
310296// #########################################
@@ -561,10 +547,7 @@ void registerPages(HTTPServer * httpServer) {
561547 httpServer->registerNode (new ResourceNode (" /updateSdUrl" , HTTP_POST, handleFirmwareUpdateSdUrlAction));
562548 httpServer->registerNode (new ResourceNode (" /delete" , HTTP_GET, handleDelete));
563549 httpServer->registerNode (new ResourceNode (" /delete" , HTTP_POST, handleDeleteAction));
564- #ifdef DEVELOP
565- httpServer->registerNode (new ResourceNode (" /settings/development/action" , HTTP_GET, handleDevAction));
566- httpServer->registerNode (new ResourceNode (" /settings/development" , HTTP_GET, handleDev));
567- #endif
550+ httpServer->registerNode (new ResourceNode (" /privacy_action" , HTTP_POST, handlePrivacyAction));
568551 httpServer->registerNode (new ResourceNode (" /privacy_action" , HTTP_POST, handlePrivacyAction));
569552 httpServer->registerNode (new ResourceNode (" /gps" , HTTP_GET, handleGps));
570553 httpServer->registerNode (new ResourceNode (" /upload" , HTTP_GET, handleUpload));
@@ -858,11 +841,6 @@ static void handleIndex(HTTPRequest *, HTTPResponse * res) {
858841// ###############################################################
859842 String html = createPage (navigationIndex);
860843 html = replaceDefault (html, " Navigation" );
861- #ifdef DEVELOP
862- html.replace (" {dev}" , development);
863- #else
864- html.replace (" {dev}" , " " );
865- #endif
866844 sendHtml (res, html);
867845}
868846
@@ -924,7 +902,7 @@ static void handleAbout(HTTPRequest *req, HTTPResponse * res) {
924902#ifdef DEVELOP
925903 " true"
926904#else
927- " false"
905+ " false"
928906#endif
929907 );
930908#ifdef CONFIG_LOG_DEFAULT_LEVEL
@@ -1272,34 +1250,6 @@ static void handleConfig(HTTPRequest *, HTTPResponse * res) {
12721250 sendHtml (res, html);
12731251}
12741252
1275- #ifdef DEVELOP
1276- static void handleDevAction (HTTPRequest *req, HTTPResponse *res) {
1277- auto params = req->getParams ();
1278- theObsConfig->setBitMaskProperty (0 , ObsConfig::PROPERTY_DEVELOPER, ShowGrid,
1279- getParameter (params, " showGrid" ) == " on" );
1280- theObsConfig->setBitMaskProperty (0 , ObsConfig::PROPERTY_DEVELOPER, PrintWifiPassword,
1281- getParameter (params, " printWifiPassword" ) == " on" );
1282- theObsConfig->saveConfig ();
1283- sendRedirect (res, " /settings/development" );
1284- }
1285-
1286- static void handleDev (HTTPRequest *, HTTPResponse *res) {
1287- String html = createPage (devIndex);
1288- html = replaceDefault (html, " Development Setting" , " /settings/development/action" );
1289-
1290- // SHOWGRID
1291- bool showGrid = theObsConfig->getBitMaskProperty (
1292- 0 , ObsConfig::PROPERTY_DEVELOPER, ShowGrid);
1293- html.replace (" {showGrid}" , showGrid ? " checked" : " " );
1294-
1295- bool printWifiPassword = theObsConfig->getBitMaskProperty (
1296- 0 , ObsConfig::PROPERTY_DEVELOPER, PrintWifiPassword);
1297- html.replace (" {printWifiPassword}" , printWifiPassword ? " checked" : " " );
1298-
1299- sendHtml (res, html);
1300- }
1301- #endif
1302-
13031253/* Upload tracks found on SD card to the portal server->
13041254 * This method also takes care to give appropriate feedback
13051255 * to the user about the progress. If httpRequest is true
0 commit comments