diff options
author | Alex AUVOLAT <alex.auvolat@ens.fr> | 2014-01-04 14:03:08 +0100 |
---|---|---|
committer | Alex AUVOLAT <alex.auvolat@ens.fr> | 2014-01-04 14:03:08 +0100 |
commit | 646720fdd975f30d7d1ef076feeda7b0d9b18c9a (patch) | |
tree | 45aaab5b3bc038375e21261eeb6dc805a8a24e4a /monitor/disp.c | |
parent | 906d9a5356fe7b90fc14a9c0d6a0d65abb7e80a8 (diff) | |
download | SystDigit-Projet-646720fdd975f30d7d1ef076feeda7b0d9b18c9a.tar.gz SystDigit-Projet-646720fdd975f30d7d1ef076feeda7b0d9b18c9a.zip |
Dynamic frequency ajustment.
Diffstat (limited to 'monitor/disp.c')
-rw-r--r-- | monitor/disp.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/monitor/disp.c b/monitor/disp.c index 96d994d..afefe41 100644 --- a/monitor/disp.c +++ b/monitor/disp.c @@ -74,11 +74,12 @@ void disp_display(t_mon *mon) { werase(wpstatus); - wprintw(wpstatus, "Step:\t\t%d\t%s", - mon->step, - (mon->status == MS_AUTO ? "A" : (mon->status == MS_RUN ? "M" : ""))); - if (mon->status == MS_FREQ) wprintw(wpstatus, "%dHz", mon->freq); - if (mon->status == MS_AUTO) wprintw(wpstatus, " %dHz", mon->max_freq); + wprintw(wpstatus, "Step:\t\t%d\t", mon->step); + if (mon->status == MS_RUN) wprintw(wpstatus, "M"); + if (mon->status == MS_FREQ) + wprintw(wpstatus, "%dHz\t%dHz", mon->actual_freq, mon->target_freq); + if (mon->status == MS_AUTO) + wprintw(wpstatus, "%dHz\t", mon->actual_freq); wprintw(wpstatus, "\t%s\n", (mon->ticker_mode == TM_SECOND ? "TS" : (mon->ticker_mode == TM_FAST ? "TF" : "TZ"))); |