Add support for progress bars
This commit is contained in:
parent
127ef0e646
commit
3c25409dfa
@ -1 +1 @@
|
|||||||
Subproject commit 2fc07b393e74ba2b7dbe85824fc0bdd85a30038c
|
Subproject commit 7828be22aa5a97c31f8d8286b50336f9193224a1
|
@ -141,7 +141,21 @@ void uartPoll(void)
|
|||||||
txs(" : S<RAW>...\r\n");
|
txs(" : S<RAW>...\r\n");
|
||||||
//txs("reset : r / R\r\n");
|
//txs("reset : r / R\r\n");
|
||||||
//txs("cgram : C<adr><2b RAW>\r\n");
|
//txs("cgram : C<adr><2b RAW>\r\n");
|
||||||
|
//txs("p-bar : xx enable progressbar\r\n");
|
||||||
|
//txs(" : x<00-60> <00-60>\r\n");
|
||||||
|
//txs(" : X<2b RAW>\r\n");
|
||||||
|
break;
|
||||||
|
case 'x':
|
||||||
|
if (dbuf[0] == 'x') {
|
||||||
|
hcs12ss59t_set_progress(0, 0);
|
||||||
|
hcs12ss59t_en_progress();
|
||||||
|
} else {
|
||||||
|
hcs12ss59t_set_progress(atol(dbuf),
|
||||||
|
atol(dbuf + 3));
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case 'X':
|
||||||
|
hcs12ss59t_set_progress(dbuf[0], dbuf[1]);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
ok = 0;
|
ok = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user