mirror of https://github.com/google/pebble
spelling: privileged
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
parent
d4d8ed5147
commit
e35b142f68
|
@ -101,7 +101,7 @@ static bool prv_force_stop_task_if_unprivileged(ProcessContext *context) {
|
||||||
|
|
||||||
uint32_t control_reg = ulTaskDebugGetStackedControl((TaskHandle_t) context->task_handle);
|
uint32_t control_reg = ulTaskDebugGetStackedControl((TaskHandle_t) context->task_handle);
|
||||||
if ((control_reg & 0x1) == 0) {
|
if ((control_reg & 0x1) == 0) {
|
||||||
// We're priviledged, it's not safe to just kill the app task.
|
// We're privileged, it's not safe to just kill the app task.
|
||||||
vTaskResume((TaskHandle_t) context->task_handle);
|
vTaskResume((TaskHandle_t) context->task_handle);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue