#include "serial_io.h" ssize_t sWrite(int port, char string[], size_t length) { if(port != -1) return write(port, string, length); else return 0; } ssize_t sWrite(int port, const char string[], size_t length) { if(port != -1) return write(port, string, length); else return 0; } ssize_t sRead(int port, void *buf, size_t count) { return (port != -1) ? read(port, buf, count) : 0; } #ifdef __cplusplus void printRates() { std::cout<<"Rates:\n"\ <<"Unchanged 0\n" \ <<"B50 "<