Fixing the Spectrum Graph on F4HWN

There was a bug for a while in F4HWN 3.9 on the Quansheng radios. The spectrum analyzer graph was too narrow when number of bars exceded 128. I’d easily run into the problem when I set the scan range to 144.000MHz to 148.000MHz, and activate the spectrum analyzer.

I dug into the code a bit and fixed it, so now it scales for large and small ranges.

I submitted a pull request to the project, and it was accepted and merged to be included in the F4HWN 4.0 release. Until that release, I’ll be running my custom build.

I also made a change to allow me to map the spectrum analyzer to a programmable side button like AubsUK had, but I’m no longer convinced it’s worth the limited code space it would consume in the binary.