Eliminate unnecessary NumberField to save code space (#1964)

* Eliminate extra NumberField to save code space

* Clang
This commit is contained in:
Mark Thompson 2024-03-09 17:36:48 -06:00 committed by GitHub
parent 9d8132978f
commit e496f8ecc2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 17 additions and 45 deletions

View file

@ -136,17 +136,10 @@ class SPECOptionsView : public View {
Text text_rx_cal{
{19 * 8, 0 * 16, 11 * 8, 1 * 16}, // 18 (x col.) x char_size, 12 (length) x 8 blanking space to delete previous chars.
"Rx_IQ_CAL "};
NumberField field_rx_iq_phase_cal_2837{
NumberField field_rx_iq_phase_cal{
{28 * 8, 0 * 16},
2,
{0, 31}, // 5 bits IQ CAL phase adjustment.
1,
' ',
};
NumberField field_rx_iq_phase_cal_2839{
{28 * 8, 0 * 16},
2,
{0, 63}, // 6 bits IQ CAL phase adjustment.
{0, 63}, // 5 or 6 bits IQ CAL phase adjustment (range updated later)
1,
' ',
};