summaryrefslogtreecommitdiff
path: root/apps/plugins/test_codec.c
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2010-10-13 21:05:50 +0000
committerFrank Gevaerts <frank@gevaerts.be>2010-10-13 21:05:50 +0000
commitc00fe34a81d87b46019ffd8a6dd3421c8195d4f5 (patch)
tree239ababdd84a9342e269c8e2e926b523cc478124 /apps/plugins/test_codec.c
parent771646a576eb5c92fed32e3b8af565bc50c68812 (diff)
downloadrockbox-c00fe34a81d87b46019ffd8a6dd3421c8195d4f5.zip
rockbox-c00fe34a81d87b46019ffd8a6dd3421c8195d4f5.tar.gz
rockbox-c00fe34a81d87b46019ffd8a6dd3421c8195d4f5.tar.bz2
rockbox-c00fe34a81d87b46019ffd8a6dd3421c8195d4f5.tar.xz
Fix some incorrect colour-to-resistance results. The price is that sometimes the display is subobtimal (like "2000 Ohms" instead of "2 KOhms")
Ideally, unit prefixes (K, M,...) should be calculated separately, but the largest resistance we can handle is 99 MOhm, which wouldn't fit in a 32 bit int (using our centiohm internal units) if we didn't cheat. (and technically we could go higher still. white-white-white would be 99 GOhm, but we don't do such high multipliers now) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28272 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/test_codec.c')
0 files changed, 0 insertions, 0 deletions