at.c: fix misleading g_message

This commit is contained in:
Xavier Del Campo
2021-10-02 11:17:47 +02:00
parent 082cf996d1
commit 6b2f0e8fbd

View File

@@ -83,6 +83,8 @@ gboolean at_send_command(struct EG25Manager *manager)
manager->at_callback = at_cmd->callback;
g_message("Sending command: %s", g_strstrip(command));
do {
ret = write(manager->at_fd, &command[pos], len);
@@ -105,7 +107,7 @@ gboolean at_send_command(struct EG25Manager *manager)
}
} while (len > 0);
g_message("Sending command: %s", g_strstrip(command));
g_message("Successfully sent command: %s", g_strstrip(command));
} else {
/* Allow the modem to enter soft sleep again when we sent the AT command*/
gpio_sequence_sleep(manager);