WIP: New BLE
This commit is contained in:
parent
4fe072f2d3
commit
a9212c5a3a
12 changed files with 191 additions and 56 deletions
|
@ -52,7 +52,8 @@ static void Configuring_Entry(StateMachineContext_T *context)
|
|||
NeoPixelsAction_T neopixels_action = {.ID = NEOPIXELS_MENU, .Prominence = NEOPIXELS_FOREGROUND, .Data = (void *)0x00};
|
||||
xQueueSend(xQueueNeoPixels, &neopixels_action, 0);
|
||||
|
||||
BLE_UpdateStatusPacket();
|
||||
BLE_UpdateHelloPacket();
|
||||
|
||||
if (BLE_ScanAndAdvertise() != SYSTEMK_RESULT_SUCCESS)
|
||||
{
|
||||
KLOG_ERROR(KLOG_TAG, "Couldn't start BLE!");
|
||||
|
@ -150,6 +151,7 @@ static void Configuring_Do(StateMachineContext_T *context)
|
|||
CurrentMenuItem->OnFocus(true);
|
||||
}
|
||||
}
|
||||
BLE_UpdateHelloPacket();
|
||||
break;
|
||||
|
||||
case KEVENT_TRIGGER_SWITCH_RELEASED:
|
||||
|
@ -180,6 +182,8 @@ static void Configuring_Do(StateMachineContext_T *context)
|
|||
{
|
||||
KLOG_WARN(KLOG_TAG, "Failed to increment team!");
|
||||
}
|
||||
|
||||
BLE_UpdateHelloPacket();
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue