- Added Sycamore protocol and command context to SICS
- Added sinfo to SICS - Added driver for TCP/IP Astrium velocity selector - Added driver for TCP/IP Astrium chopper controller
This commit is contained in:
4
ecb.c
4
ecb.c
@ -24,7 +24,7 @@
|
||||
#define READ_BYTES 3
|
||||
#define WRITE_BYTES 4
|
||||
#define DMAREAD 5
|
||||
#define ECB_BYTES 65536L
|
||||
#define ECB_BYTES 65535
|
||||
|
||||
typedef union /* Used to swap bytes in 'address' and 'byte_count' */
|
||||
{
|
||||
@ -112,7 +112,7 @@ static int ecbPrepareIO(pECB self, int func, unsigned short address,
|
||||
Swap save, adr, count;
|
||||
int status, bytes;
|
||||
|
||||
if(byteCount > ECB_BYTES){
|
||||
if(byteCount >= ECB_BYTES){
|
||||
self->lastError = ECBOVERFLOW;
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user