Fix CLI vtx command parsing, range checks, and output order in diff
commit682e98905702c8eb1bad9ee36cc19299ad46aaf2
authorBruce Luckcuck <github@etracer.net>
Tue, 17 Dec 2019 14:15:32 +0000 (17 09:15 -0500)
committerBruce Luckcuck <github@etracer.net>
Tue, 17 Dec 2019 14:52:22 +0000 (17 09:52 -0500)
tree3ae618dbedb27c288f0c21ee525ac6baf22149e2
parent4c58889915d0d674374f19274986e03dce7a6c04
Fix CLI vtx command parsing, range checks, and output order in diff
Change to use vtxTableConfig PG settings for validation rather than the current runtime values for bands, channels and power levels. Fixes command parsing when restoring a `diff` as the `vtxtable` runtime values won't be available until after the reboot.

Fix "off by one" range check for power level that was preventing use of the highest power level configured in `vtxtable`.

Reverse the order of the `vtxtable` and `vtx` outputs in a `diff`/`dump` so that `vtxtable` settings will be applied first as the `vtx` settings are dependent on them.
src/main/cli/cli.c