WA2FZW/An-FT-891-CAT-Control-Emulator-Library-by-WA2FZW

Small problem with MSG_IF and MSG_OI formatting (and solution)

Closed this issue · 3 comments

First of all thank you for the great library, it was exactly what I was looking for and is working well.

There is a problem with the IF and OI message formatting however if the radioStatus.MDA or radioStatus.MDB mode is greater than 9. This is because it should be represented as a single hexadecimal character but it actually gets written as two decimal characters as a result of the %1u in the format string. The solution is to change %1u to %1X in lines 504 and 510 in FT891_CAT.cpp.

I'm glad to be of assistance John and sorry I missed that other one.

Cheers!

Rick