[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:
Mason Tran
2021-02-16 18:55:44 -08:00
committed by GitHub
parent 7a1f09b20c
commit 3bb025a792
@@ -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: