Failed to return ES_WIFI_STATUS_OK of function ES_WIFI_HardResetModule #89
Labels
bug
Something isn't working
internal bug tracker
Issue confirmed and reported into a ticket in the internal bug tracking system
projects
Projects-related (demos, applications, examples) issue or pull-request.
wifi
WiFi-related issue or pull-request
Caution
At the return point of ES_WIFI_HardResetModule
STM32CubeL4/Projects/B-L475E-IOT01A/Applications/WiFi/Common/Src/es_wifi.c
Line 1530 in 692ff21
It requires the return value of
Obj->fops.IO_Init
(i. e. if it's set,SPI_WIFI_Init
) asret >0
. However, when mode passed toSPI_WIFI_Init
isES_WIFI_RESET
, it callsSPI_WIFI_ResetModule
and return its return value. The called reset module function only has two possible of return values, 0 or -1. So, theES_WIFI_HardResetModule
can only return the case ofES_WIFI_STATUS_ERROR
.Describe the set-up
Additional context
change it to
ret == 0
may address this issue.The text was updated successfully, but these errors were encountered: