ERIS CORE

◆ send()

void FASTRUN SvcSerialCommandInterface::send ( )

immediately transmit then clear the txBuffer

Definition at line 150 of file svcSerialCommandInterface.cpp.

150  {
151  while(throttle()){
152  delay(5);
153  }
154  if (strlen(p_tx_Buffer) > 0 ) Serial.print(p_tx_Buffer);
155  memset(p_tx_Buffer,0,SERIAL_OUTPUT_BUFFER_SIZE);
156  index_tx_buffer = 0;
157  tx_buffer_overflow_flag = false;
158 }
bool throttle()
returns true if the available serial buffer falls below SERIAL_THROTTLE_BUFFER_REMAINING_THRESHOLD if...

References index_tx_buffer, p_tx_Buffer, throttle(), and tx_buffer_overflow_flag.

Referenced by messageHandler_LS(), and AudioDirector::printStats().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: