Hi all,

I've been messing around with adding band limit settings for the Baofeng UV-B5. I basically stole the code from the UV-5R driver to get started. Then I changed the structure to use lbcd instead of bbcd because the bytes are reversed.

But unlike the UV-5R settings being 3 digits, the UV-B5 show 4 digits. It works this way but it really needs to be 3 digits.

I assume that some helpers need to be defined to divide by 10 and multiply by 10 but my attempts to look through existing code to get something that works has eluded me.

I'm not seeing the solution so any advice to get me pointed in the right direction would be appreciated.

Thanks,
Jim