lyusupov / SoftRF

:airplane: Multi-functional, compatible DIY general aviation proximity awareness system
GNU General Public License v3.0
757 stars 214 forks source link

High Load on Raspberry Pi 4 #113

Closed Huebenthal closed 3 years ago

Huebenthal commented 3 years ago

While running, the SoftRF application uses almost a whole CPU core (84%) on a Raspberry Pi 4. Configuration settings make no difference. This seems to be weird if I compare the power of a RPi4 CPU with a ESP32 where the software is running as well. By adding usleep(1000) at the end of normal_loop() it goes down to just 5%. But I do not know how time critical the things are and whether a delay of 1ms make the things wrong.

Another issue: Removing (or commenting) #define USE_EPAPER leads to a compile error. "typedef void* EPD_Task_t;" must stay valid (outside #if defined USE_EPAPER ) to avoid.

Best regards

lyusupov commented 3 years ago

Resolution: invalid.