ERIS CORE

◆ flush()

void SvcSerialCommandInterface::flush ( )
inlineprotected

Definition at line 165 of file svcSerialCommandInterface.h.

165  {
166  while(throttle()){
167  delay(1);
168  }
169  if (strlen(p_tx_Buffer) > 0 ) Serial.print(p_tx_Buffer);
170  memset(p_tx_Buffer,0,SERIAL_OUTPUT_BUFFER_SIZE);
171  index_tx_buffer = 0;
172  tx_buffer_overflow_flag = false;
173  };
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.

+ Here is the call graph for this function: