Commit a1abdc22 authored by Marian Ďurkovič's avatar Marian Ďurkovič Committed by Christophe Massiot

Implement wating for MMI data

parent c9a9c0a5
......@@ -47,6 +47,7 @@
#define RET_MMI_STATUS 3
#define RET_MMI_SLOT_STATUS 4
#define RET_MMI_RECV 5
#define RET_MMI_WAIT 6
#define RET_HUH 255
struct ret_frontend_status
......
......@@ -124,6 +124,10 @@ while :; do
echo "CAUTION: the password won't be bulleted, be alone"
echo -n "Your choice (empty for extra choices) ? "
;;
252)
sleep 1
continue
;;
0)
echo -n "Your choice: (B)ack, (C)lose or (R)etry ? "
;;
......
......@@ -252,6 +252,10 @@ int main( int i_argc, char **ppsz_argv )
exit(0);
break;
case RET_MMI_WAIT:
exit(252);
break;
case RET_ERR:
msg_Err( NULL, "request failed" );
exit(255);
......
......@@ -2374,7 +2374,7 @@ uint8_t en50221_GetMMIObject( uint8_t *p_buffer, ssize_t i_size,
i_slot = *p_buffer;
if ( pb_slot_mmi_expected[i_slot] == true )
return RET_ERR; /* should not happen */
return RET_MMI_WAIT; /* data not yet available */
p_ret->object.i_object_type = EN50221_MMI_NONE;
*pi_size = sizeof(struct ret_mmi_recv);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment