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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...