port-serial: allow deciding whether the command is queued last or run next

By default all the commands we were sending through the serial port
were added at the tail of the pending queue, but we may want to queue
them at the head in very specific cases (e.g. while sending an SMS).
This commit is contained in:
Aleksander Morgado
2019-06-03 03:50:22 +00:00
committed by Dan Williams
parent c78ba5ea0a
commit 8092e301fc
5 changed files with 12 additions and 2 deletions
+2 -1
View File
@@ -1262,7 +1262,8 @@ gps_enabled_ready (MMBaseModem *self,
mm_port_serial_command (MM_PORT_SERIAL (gps_port),
buf,
3,
FALSE,
FALSE, /* never cached */
FALSE, /* always queued last */
NULL,
NULL,
NULL);