mirror of
https://gitlab.com/mobian1/eg25-manager.git
synced 2025-08-29 15:22:20 +02:00
at.c: fix misleading g_message
This commit is contained in:
4
src/at.c
4
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);
|
||||
|
Reference in New Issue
Block a user