mirror of
https://github.com/espressif/openthread.git
synced 2026-08-14 22:57:46 +00:00
[efr32] change sleepy-demo-mtd to start awake (#6176)
This changes the sleepy-demo-mtd app's startup behavior. Prior to the change, the MTD would go to sleep immediately. Instead, the MTD will not sleep until the button is pressed.
This commit is contained in:
@@ -211,7 +211,7 @@ void handleNetifStateChanged(uint32_t aFlags, void *aContext)
|
||||
config.mDeviceType = 0;
|
||||
config.mNetworkData = 0;
|
||||
otThreadSetLinkMode(instance, config);
|
||||
sAllowDeepSleep = true;
|
||||
sAllowDeepSleep = false;
|
||||
break;
|
||||
|
||||
case OT_DEVICE_ROLE_DETACHED:
|
||||
|
||||
Reference in New Issue
Block a user