Skip to content

Commit 7e20fd8

Browse files
lgehrekecfriedt
authored andcommitted
drivers: modem: sim7080: Allwing ftp when networking is already active
Added check that makes sure ftp works when the network context is already active. Signed-off-by: Lukas Gehreke <[email protected]>
1 parent aa270c0 commit 7e20fd8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/modem/simcom/sim7080/sim7080_ftp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ int mdm_sim7080_ftp_get_start(const char *server, const char *user, const char *
106106

107107
/* Start network. */
108108
ret = mdm_sim7080_start_network();
109-
if (ret < 0) {
109+
if (ret < 0 && ret != -EALREADY) {
110110
LOG_ERR("Failed to start network for FTP!");
111111
return -1;
112112
}

0 commit comments

Comments
 (0)