From: Erik Andresen Date: Tue, 5 Sep 2017 14:32:22 +0000 (+0200) Subject: motor_ctrl: i2c fixes X-Git-Url: https://defiant.homedns.org/gitweb/?p=ros_wild_thumper.git;a=commitdiff_plain;h=d1683df60f044ecabcda11f24c835122a8cf20e4 motor_ctrl: i2c fixes --- diff --git a/avr/motor_ctrl/main.c b/avr/motor_ctrl/main.c index 7781fb4..3642d4a 100644 --- a/avr/motor_ctrl/main.c +++ b/avr/motor_ctrl/main.c @@ -5,6 +5,9 @@ #include #include #include +#include +#include +#include #include "uart.h" /* @@ -111,9 +114,9 @@ #define PWM_BREAK INT16_MIN #define STALL_LIMIT 140000 -#define TWI_ACK TWCR = (1<