wwan_perst: Support varying timeout and permanent active/inactive

This commit is contained in:
Harald Welte
2017-05-08 22:28:41 +02:00
parent 25a9a80ff5
commit cb093ce878
3 changed files with 51 additions and 29 deletions

View File

@@ -211,11 +211,11 @@ void board_exec_dbg_cmd(int ch)
break;
case '1':
printf("Resetting Modem 1 (of this SAM3)\n\r");
wwan_perst_do_reset(1);
wwan_perst_do_reset_pulse(1, 300);
break;
case '2':
printf("Resetting Modem 2 (of this SAM3)\n\r");
wwan_perst_do_reset(2);
wwan_perst_do_reset_pulse(2, 300);
break;
case '!':
qmod_use_physical_sim(1, 0);