Simple button press Embassy task seems to not run #2452
-
Dear all, I'm trying to use esp-hal with Embassy to monitor a button press event on an ESP32C3. My main.rs comprises simply a button press monitoring task and a main task. My issue is that the button press monitoring task does not print anything when I press the button. However, when I wait for button presses in the main task, I do see an info message printed. I suppose I made some obvious mistake in using Embassy and esp-hal. Please see the code and the dependencies in toml in the followings: Thank you very much. My implementation:
Dependencies:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Remove the empty |
Beta Was this translation helpful? Give feedback.
Remove the empty
loop
at the end of main. It's stealing all the CPU from your button task