Rewriting the dlmstp for Linux to use sockets. In progress, not compiling.
This commit is contained in:
@@ -146,7 +146,7 @@ void RS485_Send_Frame(
|
||||
{
|
||||
uint8_t turnaround_time;
|
||||
uint32_t baud;
|
||||
size_t written = 0;
|
||||
ssize_t written = 0;
|
||||
|
||||
if (mstp_port) {
|
||||
baud = RS485_Get_Baud_Rate();
|
||||
@@ -224,7 +224,7 @@ void RS485_Initialize(void)
|
||||
perror(RS485_Port_Name);
|
||||
exit(-1);
|
||||
}
|
||||
#if 1
|
||||
#if 0
|
||||
/* non blocking for the read */
|
||||
fcntl(RS485_Handle, F_SETFL, FNDELAY);
|
||||
#else
|
||||
|
||||
Reference in New Issue
Block a user