summaryrefslogtreecommitdiffhomepage
path: root/digital/io/src/mimot.c
diff options
context:
space:
mode:
Diffstat (limited to 'digital/io/src/mimot.c')
-rw-r--r--digital/io/src/mimot.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/digital/io/src/mimot.c b/digital/io/src/mimot.c
index ac94c517..96746f51 100644
--- a/digital/io/src/mimot.c
+++ b/digital/io/src/mimot.c
@@ -140,20 +140,20 @@ mimot_move_motor1_absolute (uint16_t position, uint8_t speed)
}
void
-mimot_motor0_zero_position (void)
+mimot_motor0_zero_position (int8_t speed)
{
uint8_t *buffer = twi_master_get_buffer (MIMOT_SLAVE);
buffer[0] = 'B';
- buffer[1] = 0x10;
+ buffer[1] = speed;
twi_master_send (2);
}
void
-mimot_motor1_zero_position (void)
+mimot_motor1_zero_position (int8_t speed)
{
uint8_t *buffer = twi_master_get_buffer (MIMOT_SLAVE);
buffer[0] = 'C';
- buffer[1] = 0x10;
+ buffer[1] = speed;
twi_master_send (2);
}