Fixed compile time issues (#294)

* Fixed compile time issues

* Fix compile time error in sasidump.cpp

* Fix comment in Makefile

* Fix compile time error in sasidump.cpp

* Restore rasdump and sasidump to BIN_ALL

Co-authored-by: Daniel Markstedt <markstedt@gmail.com>
This commit is contained in:
Uwe Seimet 2021-10-02 01:28:14 +02:00 committed by GitHub
parent af4e3dfe80
commit 0fb8753920
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 8 deletions

View File

@ -64,10 +64,12 @@ OS_FILES = ./os_integration
OBJDIR := ./obj/$(shell echo $(CONNECT_TYPE) | tr '[:upper:]' '[:lower:]')
BINDIR := ./bin/$(shell echo $(CONNECT_TYPE) | tr '[:upper:]' '[:lower:]')
#BIN_ALL = $(RASCSI) $(RASCTL) $(RASDUMP) $(SASIDUMP) $(SCSIMON)
# Temporarily remove the RASDUMP and RASDUMP tools, since they're not needed
# for my specific use case. If you need them - add them back in!
BIN_ALL = $(BINDIR)/$(RASCSI) $(BINDIR)/$(RASCTL) $(BINDIR)/$(SCSIMON)
BIN_ALL = \
$(BINDIR)/$(RASCSI) \
$(BINDIR)/$(RASCTL) \
$(BINDIR)/$(SCSIMON) \
$(BINDIR)/$(RASDUMP) \
$(BINDIR)/$(SASIDUMP)
SRC_PROTOC = \
rascsi_interface.proto

View File

@ -9,6 +9,7 @@
//
//---------------------------------------------------------------------------
#include <errno.h>
#include "os.h"
#include "fileio.h"
#include "filepath.h"
@ -282,7 +283,7 @@ bool Command(BYTE *buf, int length)
}
// Send Command
count = bus.SendHandShake(buf, length);
count = bus.SendHandShake(buf, length, BUS::SEND_NO_DELAY);
// Success if the transmission result is the same as the number
// of requests
@ -323,7 +324,7 @@ int DataOut(BYTE *buf, int length)
}
// Data transmission
return bus.SendHandShake(buf, length);
return bus.SendHandShake(buf, length, BUS::SEND_NO_DELAY);
}
//---------------------------------------------------------------------------

View File

@ -18,6 +18,7 @@
//
//---------------------------------------------------------------------------
#include <errno.h>
#include "os.h"
#include "fileio.h"
#include "filepath.h"
@ -269,7 +270,7 @@ bool Command(BYTE *buf, int length)
}
// Send command
count = bus.SendHandShake(buf, length);
count = bus.SendHandShake(buf, length, BUS::SEND_NO_DELAY);
// Return true is send results match number of requests
if (count == length) {
@ -309,7 +310,7 @@ int DataOut(BYTE *buf, int length)
}
// Receive data
return bus.SendHandShake(buf, length);
return bus.SendHandShake(buf, length, BUS::SEND_NO_DELAY);
}
//---------------------------------------------------------------------------