mirror of
https://github.com/jankae/LibreVNA.git
synced 2026-04-05 22:45:23 +00:00
interrupt safe USB send function
This commit is contained in:
parent
5137457545
commit
c05d248f83
13 changed files with 38 additions and 73 deletions
|
|
@ -119,6 +119,7 @@ inline void App_Init() {
|
|||
inline void App_Process() {
|
||||
while(1) {
|
||||
uint32_t notification;
|
||||
LED::Toggle();
|
||||
if(xTaskNotifyWait(0x00, UINT32_MAX, ¬ification, 100) == pdPASS) {
|
||||
// something happened
|
||||
if(notification & FLAG_USB_PACKET) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue