Skip to content

Commit 82dfe83

Browse files
author
dave
committed
very small changes to comments and examples
1 parent 6087491 commit 82dfe83

File tree

4 files changed

+12
-11
lines changed

4 files changed

+12
-11
lines changed

examples/esp8266WifiOled/Greenhouse.emf

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -278,11 +278,6 @@
278278
"latestValue": "U8G2_R0",
279279
"subsystem": "DISPLAY"
280280
},
281-
{
282-
"name": "YIELDING_WIRE_CB",
283-
"latestValue": "true",
284-
"subsystem": "DISPLAY"
285-
},
286281
{
287282
"name": "DISPLAY_CLOCK_PIN",
288283
"latestValue": "U8X8_PIN_NONE",
@@ -313,6 +308,11 @@
313308
"latestValue": "10",
314309
"subsystem": "DISPLAY"
315310
},
311+
{
312+
"name": "YIELDING_WIRE_CB",
313+
"latestValue": "true",
314+
"subsystem": "DISPLAY"
315+
},
316316
{
317317
"name": "PULLUP_LOGIC",
318318
"latestValue": "true",
@@ -415,8 +415,8 @@
415415
"eepromDefinition": "eeprom:",
416416
"authenticatorDefinition": "rom:100:6",
417417
"projectIoExpanders": [
418-
"deviceIO:",
419-
"pcf8574:io8574:32:12"
418+
"pcf8574:io8574:32:12",
419+
"deviceIO:"
420420
]
421421
}
422422
}

examples/esp8266WifiOled/esp8266WifiOled_menu.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,11 @@ void setupMenu() {
8181
authManager.initialise(menuMgr.getEepromAbstraction(), 100);
8282
menuMgr.setAuthenticator(&authManager);
8383
// Now add any readonly, non-remote and visible flags.
84-
menuTomatoTemp.setReadOnly(true);
8584
menuIpAddress.setReadOnly(true);
85+
menuTomatoTemp.setReadOnly(true);
8686
menuCucumberTemp.setReadOnly(true);
87-
menuPwd.setLocalOnly(true);
8887
menuSSID.setLocalOnly(true);
88+
menuPwd.setLocalOnly(true);
8989
menuSecretEntry.setVisible(false);
9090

9191
// Code generated by plugins.

examples/esp8266WifiOled/esp8266WifiOled_menu.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
#include <RemoteMenuItem.h>
2020
#include <RuntimeMenuItem.h>
2121
#include <ScrollChoiceMenuItem.h>
22-
#include <IoAbstraction.h>
2322
#include <IoAbstractionWire.h>
23+
#include <IoAbstraction.h>
2424
#include <ArduinoEEPROMAbstraction.h>
2525
#include <RemoteAuthentication.h>
2626

src/RemoteAuthentication.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,15 @@ void EepromAuthenticatorManager::copyKeyNameToBuffer(int idx, char* buffer, int
8080
}
8181

8282
void EepromAuthenticatorManager::resetAllKeys() {
83-
serdebugF("Resetting auth store");
83+
serdebugF2("Resetting auth store: ", numberOfEntries);
8484
eeprom->write16(romStart, magicKey);
8585
for(int i=0; i<numberOfEntries;i++) {
8686
// we just zero the name and UUID first character, to clear it.
8787
eeprom->write8(eepromOffset(i), 0);
8888
eeprom->write8(eepromOffset(i) + CLIENT_DESC_SIZE, 0);
8989
}
9090
changePin("1234");
91+
serdebugF("Finished reset of auth store. Pin is now 1234");
9192
}
9293

9394
int EepromAuthenticatorManager::findSlotFor(const char* name) {

0 commit comments

Comments
 (0)