diff --git a/firmware/hcs12ss59t b/firmware/hcs12ss59t index 2fc07b3..7828be2 160000 --- a/firmware/hcs12ss59t +++ b/firmware/hcs12ss59t @@ -1 +1 @@ -Subproject commit 2fc07b393e74ba2b7dbe85824fc0bdd85a30038c +Subproject commit 7828be22aa5a97c31f8d8286b50336f9193224a1 diff --git a/firmware/uart.c b/firmware/uart.c index ff4dfd8..62793a2 100755 --- a/firmware/uart.c +++ b/firmware/uart.c @@ -141,7 +141,21 @@ void uartPoll(void) txs(" : S...\r\n"); //txs("reset : r / R\r\n"); //txs("cgram : C<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; default: ok = 0;