more debug

This commit is contained in:
shrkey
2016-10-09 22:20:09 +01:00
parent d5b71ab9b7
commit 7da3dcc473

View File

@@ -264,6 +264,7 @@ void DW640::runMotor( uint8_t control, uint8_t in1, uint8_t in2, uint16_t speed
setPin( in1, 0 ); setPin( in1, 0 );
} }
} else { // DW_ININ } else { // DW_ININ
printf( speed );
if( control == DW_FORWARD ) { if( control == DW_FORWARD ) {
setPin( in2, 0 ); setPin( in2, 0 );
setPWM( in1, 0, speed * 16 ); setPWM( in1, 0, speed * 16 );