lknds
Dependencies: mbed TrapezoidControl Pulse QEI
Diff: Communication/RS485/ActuatorHub/ActuatorHub.cpp
- Revision:
- 11:028a150943b5
- Parent:
- 0:669ef71cba68
--- a/Communication/RS485/ActuatorHub/ActuatorHub.cpp Fri Oct 05 12:17:21 2018 +0000 +++ b/Communication/RS485/ActuatorHub/ActuatorHub.cpp Sat Oct 06 08:30:58 2018 +0000 @@ -2,6 +2,7 @@ #include "mbed.h" #include "../../../CommonLibraries/RingBuffer/RingBuffer.h" +#include "../../../System/Process/Process.h" #include "../../../System/Using.h" static char RS485Send[RS485_BUFFER_SIZE]; @@ -178,8 +179,15 @@ RS485SendBuffer.PutData(disconnect); } #endif + + RS485SendBuffer.PutData('*'); + RS485SendBuffer.PutData(TAPELED_ADDR); + RS485SendBuffer.PutData(sendLedData.red); + RS485SendBuffer.PutData(sendLedData.green); + RS485SendBuffer.PutData(sendLedData.blue); + RS485SendBuffer.PutData('\r'); - // __enable_irq(); + __enable_irq(); } } }