FreeCalypso > hg > freecalypso-reveng
comparison frbl/test/frbl2.c @ 325:7df08926a4e7
frbl2test: better message for Hello response
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Fri, 06 Mar 2020 01:59:20 +0000 |
parents | 43c92df87ac6 |
children | 10d62a3bfeec |
comparison
equal
deleted
inserted
replaced
324:43c92df87ac6 | 325:7df08926a4e7 |
---|---|
221 u_char respbuf[4]; | 221 u_char respbuf[4]; |
222 static int zero = 0; | 222 static int zero = 0; |
223 | 223 |
224 ioctl(target_fd, FIONBIO, &zero); | 224 ioctl(target_fd, FIONBIO, &zero); |
225 send_beacons(); | 225 send_beacons(); |
226 printf("Got beacon response, attempting FLUID protocol\n"); | 226 printf("Got Hello response, attempting FLUID protocol\n"); |
227 write(target_fd, fluid_baudrate_cmd, sizeof fluid_baudrate_cmd); | 227 write(target_fd, fluid_baudrate_cmd, sizeof fluid_baudrate_cmd); |
228 usleep(SERIAL_FLUSH_DELAY * 1000); | 228 usleep(SERIAL_FLUSH_DELAY * 1000); |
229 tcflush(target_fd, TCIFLUSH); | 229 tcflush(target_fd, TCIFLUSH); |
230 write(target_fd, fluid_version_cmd, sizeof fluid_version_cmd); | 230 write(target_fd, fluid_version_cmd, sizeof fluid_version_cmd); |
231 if (expect_add_response(respbuf, 1, INTERMEDIATE_TIMEOUT) < 0) { | 231 if (expect_add_response(respbuf, 1, INTERMEDIATE_TIMEOUT) < 0) { |