Skip to content

Commit

Permalink
Actually record the private data.
Browse files Browse the repository at this point in the history
  • Loading branch information
gkoh committed Mar 7, 2024
1 parent 793d487 commit 23a5631
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
1 change: 1 addition & 0 deletions lib/M5ez/src/M5ez.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2255,6 +2255,7 @@ void M5ez::addEvent(uint16_t (*function)(void *private_data),
uint32_t when /* = 1 */) {
event_t n;
n.function = function;
n.private_data = private_data;
n.when = millis() + when - 1;
_events.push_back(n);
}
Expand Down
7 changes: 2 additions & 5 deletions src/furble.ino
Original file line number Diff line number Diff line change
Expand Up @@ -315,11 +315,8 @@ uint16_t disconnectDetect(void *private_data) {
if (device->isConnected())
return 500;

String buttons;
buttons = ez.buttons.get();

String header;
header = ez.header.title();
String buttons = ez.buttons.get();
String header = ez.header.title();

NimBLEClient *pClient = NimBLEDevice::createClient();
ezProgressBar progress_bar(FURBLE_STR, "Reconnecting ...", "");
Expand Down

0 comments on commit 23a5631

Please sign in to comment.