From b7e5a7a1a5745f3f8283b60778b24c7a785920b9 Mon Sep 17 00:00:00 2001 From: shrkey Date: Sun, 9 Oct 2016 22:16:42 +0100 Subject: [PATCH] assignment error --- darkwater/DW640.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/darkwater/DW640.cpp b/darkwater/DW640.cpp index 814dfcf..d857d66 100644 --- a/darkwater/DW640.cpp +++ b/darkwater/DW640.cpp @@ -252,7 +252,7 @@ void DW640::setMotorOff(uint8_t motor) { void DW640::runMotor( uint8_t control, uint8_t in1, uint8_t in2, uint16_t speed ) { // get the mode - if( getMode() = DW_PHASE ) { + if( getMode() == DW_PHASE ) { if( control == DW_FORWARD ) { setPin( in2, 0 ); setPWM( in1, 0, speed * 16 );