Skip to content
Snippets Groups Projects
Commit a4de56d6 authored by maxgerhardt's avatar maxgerhardt
Browse files

Fix Unix compilation, remove ardulink check

parent eaa5c8e3
No related branches found
No related tags found
No related merge requests found
......@@ -41,13 +41,10 @@ void * MiniCHLinkInitAsDLL( struct MiniChlinkFunctions ** MCFO )
{
fprintf( stderr, "Found NHC-Link042 Programmer\n" );
}
#ifndef DISABLE_ARDULINK
else if ((dev = TryInit_Ardulink()))
{
fprintf( stderr, "Found Ardulink Programmer\n" );
}
#endif
else
{
fprintf( stderr, "Error: Could not initialize any supported programmers\n" );
......
......@@ -58,7 +58,7 @@ int serial_dev_open(serial_dev_t *dev) {
return -1;
}
if (tcgetattr(ctx->fd, &attr) == -1) {
if (tcgetattr(dev->fd, &attr) == -1) {
perror("tcgetattr");
return -2;
}
......@@ -66,7 +66,7 @@ int serial_dev_open(serial_dev_t *dev) {
cfmakeraw(&attr);
cfsetspeed(&attr, dev->baud);
if (tcsetattr(ctx->fd, TCSANOW, &attr) == -1) {
if (tcsetattr(dev->fd, TCSANOW, &attr) == -1) {
perror("tcsetattr");
return -3;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment