mirror of
https://github.com/mikecarper/MeshCore.git
synced 2026-09-26 16:27:57 +00:00
fix(companion): recover radio profile settings after flash
This commit is contained in:
@@ -4,17 +4,6 @@
|
||||
#include <FreeRTOS.h>
|
||||
#include <task.h>
|
||||
#include <string.h>
|
||||
#include <helpers/nrf52/BleTaskStartup.h>
|
||||
|
||||
namespace mesh {
|
||||
namespace nrf52 {
|
||||
static uint8_t ble_task_mask;
|
||||
|
||||
void resetBleTaskStartup() { ble_task_mask = 0; }
|
||||
bool bleTasksStarted() { return ble_task_mask == 3; }
|
||||
} // namespace nrf52
|
||||
} // namespace mesh
|
||||
|
||||
#ifndef MESH_NRF52_LOOP_STACK_WORDS
|
||||
#define MESH_NRF52_LOOP_STACK_WORDS 2048
|
||||
#endif
|
||||
@@ -44,15 +33,6 @@ extern "C" BaseType_t __wrap_xTaskCreate(
|
||||
}
|
||||
const BaseType_t result = __real_xTaskCreate(
|
||||
task_code, task_name, adjusted_depth, parameters, priority, created_task);
|
||||
if (task_name != NULL) {
|
||||
const uint8_t mask = strcmp(task_name, "BLE") == 0 ? 1
|
||||
: strcmp(task_name, "SOC") == 0 ? 2 : 0;
|
||||
if (result == pdPASS) {
|
||||
mesh::nrf52::ble_task_mask |= mask;
|
||||
} else {
|
||||
mesh::nrf52::ble_task_mask &= ~mask;
|
||||
}
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user