Skip to content
Snippets Groups Projects
Commit fffabf8f authored by Patrick John Grosch Obregon's avatar Patrick John Grosch Obregon
Browse files

firmware for mx28 dynamixel - program runs - ini LED ON - infinite while

parent 8b721dec
No related branches found
No related tags found
No related merge requests found
...@@ -144,7 +144,12 @@ int main(void) ...@@ -144,7 +144,12 @@ int main(void)
while(1) while(1)
{ {
if(dyn_slave_is_packet_ready())// check if a new instruction packet has been received
/* GPIO_ResetBits(GPIOA,GPIO_Pin_13); // LED ON
delay_ms(300);
GPIO_SetBits(GPIOA,GPIO_Pin_13); // LED OFF
delay_ms(300);*/
/*if(dyn_slave_is_packet_ready())// check if a new instruction packet has been received
{ {
dyn_slave_get_inst_packet(inst_packet);// get the received packet dyn_slave_get_inst_packet(inst_packet);// get the received packet
// check the packet checksum // check the packet checksum
...@@ -165,7 +170,7 @@ int main(void) ...@@ -165,7 +170,7 @@ int main(void)
// send a checksum error answer // send a checksum error answer
dyn_slave_send_status_packet(DYN_CHECKSUM_ERROR,0,0x00); dyn_slave_send_status_packet(DYN_CHECKSUM_ERROR,0,0x00);
} }
} } */
/*else { /*else {
GPIO_ResetBits(GPIOA,GPIO_Pin_13); GPIO_ResetBits(GPIOA,GPIO_Pin_13);
delay_ms(300); delay_ms(300);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment