JvanKatwijk / eti-stuff

experimental software for creating and interpreting eti frames
GNU General Public License v2.0
21 stars 12 forks source link

allow channel in lowercase in syntax #53

Closed andimik closed 2 years ago

andimik commented 2 years ago

This PR allows channel numbers also in lowercase in the syntax.

Before

The original syntax required uppercase channel numbers like 5A till 13F. A lower case channel number automatically got 5A.

$ eti-cmdline-rtlsdr -Q -C 13f
tunedFrequency =  174928000   # wrong frequency for 13F

After

Now the optarg is internally converted to uppercase in order to allow lower case channel numbers in the syntax:

$ eti-cmdline-rtlsdr -Q -C 13f
tunedFrequency =  239200000   # correct frequency for 13F