• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisióncd46489628d656e4a29cb72b930ebe9d5060495d (tree)
Tiempo2013-06-11 11:56:04
AutorK.Ohta <whatisthis.sowhat@gmai...>
CommiterK.Ohta

Log Message

[Tuner] ADD trap of overflow on tuning.

Cambiar Resumen

Diferencia incremental

--- a/akc6955.c
+++ b/akc6955.c
@@ -113,6 +113,8 @@ unsigned int akc6955_set_tune(unsigned char mode_3k, unsigned int ch)
113113 // BAND=AM && MW2
114114 i = (i / 3) * 3;
115115 }
116+ if(i < 0) i = 0;
117+ if(i > 0x1fff) i = 0x1fff;
116118 if(mode_3k == 0){
117119 b = ((i >> 8) & 0x1f) | 0x40; // 32.768KHz clock
118120 } else {