Jump to content

Recommended Posts

Posted

I've been reading over the example C programms to get a feel for it and came across this line in the clockbox:

unsigned char mclock_ctr_measures; // counts the measures (up to 65535)

This doesn't make sense to me, a char is usually an 8 bit quantity and I don't see how you get 65535 out of an unsigned char. Should this be an unsigned int or is there a separate variable that is the "upper byte" or some such?

John S.

Posted

Hi John,

this is a bug, the variable should be declared as "unsigned int".

Propably the measure will restart at 0 once 256 has been reached (at 140 BPM this takes 7.3 minutes, therefore I never noticed this ;-)

Best Regards, Thorsten.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...