• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#objective-cqt誰得cocoawindowspythonrubyphpgameguibathyscaphec翻訳omegat計画中(planning stage)frameworktwittertestdombtronvb.netdirectxarduinopreviewerゲームエンジン

Commit MetaInfo

Révisioncd46489628d656e4a29cb72b930ebe9d5060495d (tree)
l'heure2013-06-11 11:56:04
AuteurK.Ohta <whatisthis.sowhat@gmai...>
CommiterK.Ohta

Message de Log

[Tuner] ADD trap of overflow on tuning.

Change Summary

Modification

--- 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 {