Cleanup debug pin toggle
This commit is contained in:
committed by
Raphael Coeffic
parent
3fd3077944
commit
3e390bd582
@@ -958,8 +958,6 @@ int cliSerialPassthrough(const char **argv)
|
|||||||
// use 2nd half of 'tmpBuf'
|
// use 2nd half of 'tmpBuf'
|
||||||
rx_bytes = xStreamBufferBytesAvailable(cliRxBuffer);
|
rx_bytes = xStreamBufferBytesAvailable(cliRxBuffer);
|
||||||
if (rx_bytes) {
|
if (rx_bytes) {
|
||||||
// debug
|
|
||||||
GPIO_SetBits(EXTMODULE_TX_GPIO, EXTMODULE_TX_GPIO_PIN);
|
|
||||||
|
|
||||||
// wait for end of last transmission
|
// wait for end of last transmission
|
||||||
intmoduleWaitForTxCompleted();
|
intmoduleWaitForTxCompleted();
|
||||||
@@ -967,8 +965,6 @@ int cliSerialPassthrough(const char **argv)
|
|||||||
rx_bytes = xStreamBufferReceive(cliRxBuffer, tmpBuf2, tmpBufSize, 0);
|
rx_bytes = xStreamBufferReceive(cliRxBuffer, tmpBuf2, tmpBufSize, 0);
|
||||||
intmoduleSendBuffer(tmpBuf2, rx_bytes); // sends asynchronously
|
intmoduleSendBuffer(tmpBuf2, rx_bytes); // sends asynchronously
|
||||||
|
|
||||||
// debug
|
|
||||||
GPIO_ResetBits(EXTMODULE_TX_GPIO, EXTMODULE_TX_GPIO_PIN);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Let's hope this does not starve the other side
|
// Let's hope this does not starve the other side
|
||||||
|
|||||||
Reference in New Issue
Block a user