Skip to content

Commit 9d74de7

Browse files
committed
cortex: disabled two-wire motor code
1 parent 8a10120 commit 9d74de7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

arch_cortex/hax.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ void arch_init_1(void) {
2929
adc_init();
3030
exti_init();
3131

32-
motors_init();
32+
//motors_init();
3333

3434
memset(&u2m, 0, sizeof u2m);
3535
memset(&m2u, 0, sizeof m2u);
@@ -105,11 +105,14 @@ void motor_set(index_t index, int8_t value) {
105105
value2 = value + 128;
106106

107107
if (index == IX_MOTOR(1) || index == IX_MOTOR(10)) {
108+
WARN("index %d; value %d; two-wire motor", index, value);
109+
#if 0
108110
if (index == IX_MOTOR(1)) {
109111
motor0_set((int16_t)value << 8);
110112
} else {
111113
motor1_set((int16_t)value << 8);
112114
}
115+
#endif
113116
} else if (IX_MOTOR(2) <= index && index <= IX_MOTOR(9)) {
114117
u2m.u2m.motors[index - IX_MOTOR(2)] = value2;
115118
} else {

0 commit comments

Comments
 (0)