at-serial-port: allow sending 'raw' commands

Commands treated as 'raw' won't get the 'AT' prefix and will also not get the
trailing carriage return.
This commit is contained in:
Aleksander Morgado
2012-08-24 12:32:28 +02:00
parent d74336e96d
commit d9ea4a304c
8 changed files with 29 additions and 9 deletions
+2
View File
@@ -213,6 +213,7 @@ huawei_custom_init_step (HuaweiCustomInitContext *ctx)
ctx->port,
"AT^CURC=0",
3,
FALSE, /* raw */
ctx->cancellable,
(MMAtSerialResponseFn)curc_ready,
ctx);
@@ -232,6 +233,7 @@ huawei_custom_init_step (HuaweiCustomInitContext *ctx)
ctx->port,
"AT^GETPORTMODE",
3,
FALSE, /* raw */
ctx->cancellable,
(MMAtSerialResponseFn)getportmode_ready,
ctx);