summaryrefslogtreecommitdiffhomepage
path: root/digital/io/src/mimot.c
diff options
context:
space:
mode:
authorNicolas Schodet2010-05-02 10:08:29 +0200
committerNicolas Schodet2010-05-02 10:08:29 +0200
commita26bbeacef99cc9c8cacfa6b12b42e783bcf4398 (patch)
tree4b9ab8acccd123b6d90c83c73dfcfab0def1f6f7 /digital/io/src/mimot.c
parenta86c71e0f36ab75489de3f6aa29fdcf31fa45710 (diff)
digital/io/src: change auxilliary motor interfaces
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);
}