From 1e2b9ce3adb96f4c1c798d682b1f64c64c7f0f4d Mon Sep 17 00:00:00 2001 From: Mats van Reenen Date: Wed, 27 May 2020 11:03:43 +0200 Subject: [PATCH] fix refrences --- motorDriver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/motorDriver.c b/motorDriver.c index 5dd0bf3..8bb0f64 100644 --- a/motorDriver.c +++ b/motorDriver.c @@ -61,11 +61,11 @@ const uchar MD_CS = BIT3; #define MD_CC_toff 0 // 4 bits enum bool MDStatus(){ - unsigned long stat = md_read(MD_GSTAT); + unsigned long stat = MD_read(MD_GSTAT); if(stat != 0){ if(stat == 0x1){ // only a recet has occert // restart the motor driver - md_setup(); + MDInit(); }else{ // one of the motors stopt due to short or overheated or a undervoltage in chargepump // wait a while for checking again __delay_cycles(16000000);