From 6062aaa5d5843ddfa4cab21b607d197b1e671549 Mon Sep 17 00:00:00 2001 From: hathach Date: Thu, 8 Nov 2018 12:30:32 +0700 Subject: [PATCH] remove cdc flush in idle hook since it use mutex now --- cores/nRF5/rtos.cpp | 6 ------ 1 file changed, 6 deletions(-) diff --git a/cores/nRF5/rtos.cpp b/cores/nRF5/rtos.cpp index 32c6f4a9..c07d9af8 100644 --- a/cores/nRF5/rtos.cpp +++ b/cores/nRF5/rtos.cpp @@ -99,12 +99,6 @@ void vApplicationMallocFailedHook(void) void vApplicationIdleHook( void ) { - // Internal background task -#ifdef NRF52840_XXAA - // flush cdc in case loop() is suspended for low-power - tud_cdc_write_flush(); -#endif - // Call user callback if defined if ( rtos_idle_callback ) rtos_idle_callback(); }