[FL-2433, FL-2408] Get rid of file_worker in archive and various fixes (#1105)
* Archive: get rid of file_worker and various fixes * USB init moved to CLI service
This commit is contained in:
@@ -1225,7 +1225,7 @@ osStatus_t osTimerStart (osTimerId_t timer_id, uint32_t ticks) {
|
||||
stat = osErrorParameter;
|
||||
}
|
||||
else {
|
||||
if (xTimerChangePeriod (hTimer, ticks, 0) == pdPASS) {
|
||||
if (xTimerChangePeriod (hTimer, ticks, portMAX_DELAY) == pdPASS) {
|
||||
stat = osOK;
|
||||
} else {
|
||||
stat = osErrorResource;
|
||||
@@ -1254,7 +1254,7 @@ osStatus_t osTimerStop (osTimerId_t timer_id) {
|
||||
stat = osErrorResource;
|
||||
}
|
||||
else {
|
||||
if (xTimerStop (hTimer, 0) == pdPASS) {
|
||||
if (xTimerStop (hTimer, portMAX_DELAY) == pdPASS) {
|
||||
stat = osOK;
|
||||
} else {
|
||||
stat = osError;
|
||||
@@ -1305,7 +1305,7 @@ osStatus_t osTimerDelete (osTimerId_t timer_id) {
|
||||
callb = (TimerCallback_t *)pvTimerGetTimerID (hTimer);
|
||||
#endif
|
||||
|
||||
if (xTimerDelete (hTimer, 0) == pdPASS) {
|
||||
if (xTimerDelete (hTimer, portMAX_DELAY) == pdPASS) {
|
||||
#if (configSUPPORT_DYNAMIC_ALLOCATION == 1)
|
||||
if ((uint32_t)callb & 1U) {
|
||||
/* Callback memory was allocated from dynamic pool, clear flag */
|
||||
|
Reference in New Issue
Block a user