Rockbox

Tasklist

FS#11273 - Format FM frequency depending on the regional settings

Attached to Project: Rockbox
Opened by Alexander Levin (fml2) - Friday, 14 May 2010, 09:00 GMT
Last edited by Alexander Levin (fml2) - Saturday, 15 May 2010, 21:58 GMT
Task Type Patches
Category FM Tuner
Status Closed
Assigned To No-one
Operating System All players
Severity Low
Priority Normal
Reported Version Release 3.4
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

In some regions, the frequency is changed in 0.1 MHz steps, so that there's no need to display it with two digits after the decimal point. This patch formats the frequency as needed.
This task depends upon

Closed by  Alexander Levin (fml2)
Saturday, 15 May 2010, 21:58 GMT
Reason for closing:  Accepted
Additional comments about closing:  Committed in r26069
Comment by Jonathan Gordon (jdgordon) - Saturday, 15 May 2010, 09:39 GMT
looks fine.. can you get rid of the extra {}'s in the case WPS_TOKEN_TUNER_[MIN|MAX|CUR]FREQ cases? they make the switch a bit hard to read
Comment by Alexander Levin (fml2) - Saturday, 15 May 2010, 10:31 GMT
Yes, I will change the formatting function so that it returns the buf. Then all the switch cases can be written shorter.

Loading...