diff --git a/build_all/rebuild_all b/build_all/rebuild_all index 102cbe63..09a9aa31 100755 --- a/build_all/rebuild_all +++ b/build_all/rebuild_all @@ -412,6 +412,7 @@ cp $FWPATH/build/BLDC_4_ChibiOS.bin $COPYDIR/VESC_default_no_hw_limits.bin #################### Cheap_FOCer_2 ######################## COPYDIR=Cheap_FOCer_2 +mkdir -p $COPYDIR rm -f $COPYDIR/* # default @@ -424,6 +425,7 @@ cp $FWPATH/build/BLDC_4_ChibiOS.bin $COPYDIR/VESC_default.bin #################### Little_FOCer ######################## COPYDIR=Little_FOCer +mkdir -p $COPYDIR rm -f $COPYDIR/* # default diff --git a/hwconf/hw_Little_FOCer.h b/hwconf/hw_Little_FOCer.h index a18a7548..1357dc0f 100644 --- a/hwconf/hw_Little_FOCer.h +++ b/hwconf/hw_Little_FOCer.h @@ -28,14 +28,10 @@ #define HW_HAS_DRV8323S #define HW_HAS_3_SHUNTS - - #define DRV8323S_CUSTOM_SETTINGS(); drv8323s_set_current_amp_gain(CURRENT_AMP_GAIN); \ drv8323s_write_reg(3,0x333); \ drv8323s_write_reg(4,0x733); \ - //drv8323s_write_reg(3,0x323); \ - drv8323s_write_reg(4,0x723); \ - //drv8323s_write_reg(5,0x25d); + drv8323s_write_reg(4,0x723); // Macros #define ENABLE_GATE() palSetPad(GPIOB, 5)