From 6b2f0e8fbd54a68499881437a3af8535cdbf773a Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Date: Sat, 2 Oct 2021 11:17:47 +0200 Subject: [PATCH] at.c: fix misleading g_message --- src/at.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/at.c b/src/at.c index 64ad466..b50ceea 100644 --- a/src/at.c +++ b/src/at.c @@ -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);