gatserver: Add ATS6 command handler#2 - blank line removed, - keep int type because prototyping issue.
PATCH 1/1 gatserver: Add ATS6 command handler#2 - blank line removed, - keep int type because prototyping issue.
--- gatchat/gatserver.c | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-)
gatchat/gatserver.c +10 -0
@@ -83,6 +83,7 @@ struct v250_settings {char s3;/* set by S3=<val> */ char s4;/* set by S4=<val> */ char s5;/* set by S5=<val> */ +int s6;/* set by S6=<val> */ gboolean echo;/* set by E<val> */ gboolean quiet;/* set by Q<val> */ gboolean is_v1;/* set by V<val>, v0 or v1 */
@@ -426,6 +427,13 @@ static void at_c108_cb(GAtServerRequestType type, GAtResult *result,at_template_cb (type, result, server, &server->v250.c108,"&D" ,0 ,2 ,2 ); } +static void at_s6_cb (GAtServerRequestType type,GAtResult *result, +gpointer user_data) +{ +GAtServer *server = user_data; +at_template_cb (type, result, server, &server->v250.s6,"S6" ,0 ,255 ,2 ); +} +static inline gboolean is_extended_command_prefix (const char c) {switch (c) {
@@ -1031,6 +1039,7 @@ static void v250_settings_create(struct v250_settings *v250) v250->s3 ='\r' ; v250->s4 ='\n' ; v250->s5 ='\b' ; + v250->s6 =2 ; v250->echo = TRUE; v250->quiet = FALSE; v250->is_v1 = TRUE;
@@ -1054,6 +1063,7 @@ static void basic_command_register(GAtServer *server)g_at_server_register (server,"S3" , at_s3_cb, server,NULL );g_at_server_register (server,"S4" , at_s4_cb, server,NULL );g_at_server_register (server,"S5" , at_s5_cb, server,NULL ); +g_at_server_register (server,"S6" , at_s6_cb, server,NULL );g_at_server_register (server,"E" , at_e_cb, server,NULL );g_at_server_register (server,"Q" , at_q_cb, server,NULL );g_at_server_register (server,"V" , at_v_cb, server,NULL );
Signature · 1 line
1.7.1
Hi Olivier,
Quoted 3 lines · Olivier Guiter
--- gatchat/gatserver.c | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-)
Your patch title is too big, try to keep the message under 72 characters (ideally 50). The rest of the description goes to the commit message.
Signature · 2 lines
Gustavo F. Padovan http://profusion.mobi
Hi Olivier,
Quoted 2 lines
gatchat/gatserver.c | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-)
so I have the problem now that if I just use "git am" to apply your patch, the commit message seen in "git log" looks wrong. Check for yourself what happens here. It is the best way to see how git handles these.
If you have a second version of the patch modify the Subject line to say [PATCH v2].
Check the M5 coding style rule for commit messages. You need a clear subject and short subject. If you have more details put them into a commit body part.
For the change log or notes to the reviewer (which should not be part of the commit message), you need to put them between --- and the diffstat.
Regards
Marcel