Handle change to asyncqueue to handle binary protocols
r2271 | dcl | 2008-01-15 12:25:16 +1100 (Tue, 15 Jan 2008) | 2 lines
This commit is contained in:
@@ -917,8 +917,9 @@ static int DMC2280Send(pDMC2280Driv self, char *command) {
|
||||
*/
|
||||
static int DMC2280SendReceive(pDMC2280Driv self, char *cmd, char* reply) {
|
||||
int status;
|
||||
int cmd_len = CMDLEN;
|
||||
|
||||
status = AsyncUnitTransact(self->asyncUnit, cmd, strlen(cmd), reply, CMDLEN);
|
||||
status = AsyncUnitTransact(self->asyncUnit, cmd, strlen(cmd), reply, &cmd_len);
|
||||
|
||||
if (status != 1) {
|
||||
if (self->debug)
|
||||
@@ -1390,7 +1391,7 @@ static char* state_name(StateFunc func) {
|
||||
return "<unknown_state>";
|
||||
}
|
||||
|
||||
void str_n_cat(char* s1, int len, const char* s2) {
|
||||
static void str_n_cat(char* s1, int len, const char* s2) {
|
||||
int i = strlen(s1);
|
||||
const char* p = s2;
|
||||
while (i < len - 3 && *p) {
|
||||
|
||||
Reference in New Issue
Block a user