Subversion Repositories svn.mios32

Compare Revisions

Ignore whitespace Rev 2112 → Rev 2113

/trunk/apps/tutorials/029_keyboard_velocity/app.c
367,7 → 367,7
u16 timestamp_break = din_activated_timestamp[pin_break];
u16 timestamp_make = din_activated_timestamp[pin_make];
// and the delta delay (IMPORTANT: delay variable needs same resolution like timestamps to handle overrun correctly!)
s16 delay = timestamp_make - timestamp_break;
u16 delay = timestamp_make - timestamp_break;
 
int velocity = 127;
if( delay > keyboard_delay_fastest ) {