Skip to content
Snippets Groups Projects
Forked from card10 / firmware
Source project has a limited visibility.
  • rahix's avatar
    75278836
    chore(api-lock): Port to new mutex API · 75278836
    rahix authored
    
    Using a bare FreeRTOS mutex is deprecated.  Replace it with the new
    `struct mutex`.  This should increase stability.
    
    Additionally, fix a bug in `lifecycle.c:do_load()` where the function
    would return without unlocking the API mutex if `hardware_reset()`
    returns an error.
    
    Signed-off-by: default avatarRahix <rahix@rahix.de>
    Verified
    75278836
    History
    chore(api-lock): Port to new mutex API
    rahix authored
    
    Using a bare FreeRTOS mutex is deprecated.  Replace it with the new
    `struct mutex`.  This should increase stability.
    
    Additionally, fix a bug in `lifecycle.c:do_load()` where the function
    would return without unlocking the API mutex if `hardware_reset()`
    returns an error.
    
    Signed-off-by: default avatarRahix <rahix@rahix.de>