Skip to content

Commit c00cb81

Browse files
author
dave
committed
Minor fix
1 parent 1f9c4ce commit c00cb81

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/stm32f4mbed/tcmenu_main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ void setup() {
5858
menuMgr.setEepromRef(&eeprom);
5959

6060
// now we set up the authenticator we prepared earlier, it holds the paired devices that are allowed to connect and
61-
// also the passcode for secured menu items.
61+
// also the passcode for secured menu items. We provide it to the remote server and also menu manager.
6262
eepromAuth.initialise(&eeprom, 100);
6363
menuMgr.setAuthenticator(&eepromAuth);
6464
remoteServer.setAuthenticator(&eepromAuth);
@@ -83,7 +83,7 @@ void setup() {
8383

8484
// and register to receive updates from the connector when connectivity changes. When connected is true
8585
// we have a user connected to our remote endpoint.
86-
remoteServer.getRemoteConnector(0)->setCommsNotificationCallback([](CommunicationInfo info) {
86+
menuRemoteStatusList.registerCommsNotification([](CommunicationInfo info) {
8787
deviceConnectedWidget.setCurrentState(info.connected ? 1 : 0);
8888
});
8989

0 commit comments

Comments
 (0)