From bc4fc30d89a25402bf845598d0e8abfa5d114c2d Mon Sep 17 00:00:00 2001 From: Caiwen Zhang Date: Fri, 15 Mar 2013 04:58:29 +0800 Subject: [PATCH] s_sat.c: Fix envelope cmd and enable Setup Event List Change-Id: Iadd625684c9a630f6452fe5395acd2767605b9fb --- src/s_sat.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/s_sat.c b/src/s_sat.c index 0cb3810..a38d999 100644 --- a/src/s_sat.c +++ b/src/s_sat.c @@ -221,7 +221,7 @@ static gboolean on_event_sat_proactive_command(CoreObject *o, const void *event_ dbg("wrong input"); break; } - if ((decoded_data.cmd_type == SAT_PROATV_CMD_REFRESH) || (decoded_data.cmd_type == SAT_PROATV_CMD_SETUP_EVENT_LIST)) { + if (decoded_data.cmd_type == SAT_PROATV_CMD_REFRESH) { /*Not supported*/ dbg("Not suported Proactive command"); return FALSE; @@ -355,8 +355,8 @@ static TReturn s_envelope(CoreObject *o, UserRequest *ur) return TCORE_RETURN_EINVAL; } for (count = 0; count < envelope_cmd_len; count++) { - dbg("envelope_cmd %02x", envelope_cmd[count]); - sprintf(pbuffer, "%02x", envelope_cmd[count]); + dbg("envelope_cmd %02x", (unsigned char)envelope_cmd[count]); + sprintf(pbuffer, "%02x", (unsigned char)envelope_cmd[count]); pbuffer += 2; } dbg("pbuffer %s", envelope_cmdhex); -- 2.7.4