mirror of
https://github.com/akuker/RASCSI.git
synced 2024-11-25 20:33:35 +00:00
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:
parent
af4e3dfe80
commit
0fb8753920
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user