There was an error while loading. Please reload this page.
1 parent 0f5ad97 commit 29cc073Copy full SHA for 29cc073
1 file changed
vehicle/OVMS.V3/components/ovms_cellular/src/ovms_cellular.cpp
@@ -340,7 +340,9 @@ void modem::SetPowerMode(PowerMode powermode)
340
case Sleep:
341
case DeepSleep:
342
if ((original!=On)&&(original!=Sleep)&&(original!=DeepSleep))
343
- SendSetState1(PoweringOn); // We are not in the task, so queue the state change
+ SendSetState1(PowerOffOn); // We are not in the task, so queue the state change
344
+ // We don't know the actual power state of the modem, it can be still powered on
345
+ // after a crash. PowerOffOn initiates a power cycle, which works in any case.
346
break;
347
348
case Off:
0 commit comments