Skip to content

Commit 1de666a

Browse files
committed
Fixing 2 bugs
* Prepending 'renameFile' with 'WiFiDrv' so that 'WiFiDrv::renameFile', otherwise a linker error concurs. * Setting correct command response for function SpiDrv::waitResponseCmd
1 parent 49f9738 commit 1de666a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utility/wifi_drv.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1110,7 +1110,7 @@ int8_t WiFiDrv::downloadFile(const char* url, uint8_t url_len, const char *filen
11101110
return _data;
11111111
}
11121112

1113-
int8_t renameFile(const char * old_file_name, uint8_t const old_file_name_len, const char * new_file_name, uint8_t const new_file_name_len)
1113+
int8_t WiFiDrv::renameFile(const char * old_file_name, uint8_t const old_file_name_len, const char * new_file_name, uint8_t const new_file_name_len)
11141114
{
11151115
WAIT_FOR_SLAVE_SELECT();
11161116
/* Send Command */
@@ -1133,7 +1133,7 @@ int8_t renameFile(const char * old_file_name, uint8_t const old_file_name_len, c
11331133
/* Wait for reply */
11341134
uint8_t data = 0;
11351135
uint8_t dataLen = 0;
1136-
if (!SpiDrv::waitResponseCmd(DOWNLOAD_FILE, PARAM_NUMS_1, &data, &dataLen))
1136+
if (!SpiDrv::waitResponseCmd(RENAME_FILE, PARAM_NUMS_1, &data, &dataLen))
11371137
{
11381138
WARN("error waitResponse");
11391139
data = WL_FAILURE;

0 commit comments

Comments
 (0)