|
@@ -84,7 +84,8 @@ int main(int argc, char*argv[])
|
|
|
return -1;
|
|
|
}
|
|
|
|
|
|
-
|
|
|
+
|
|
|
+ nb_* were identical) */
|
|
|
if (mb_mapping->nb_bits != UT_BITS_ADDRESS + UT_BITS_NB) {
|
|
|
printf("Invalid nb bits (%d != %d)\n", UT_BITS_ADDRESS + UT_BITS_NB, mb_mapping->nb_bits);
|
|
|
modbus_free(ctx);
|
|
@@ -194,7 +195,7 @@ int main(int argc, char*argv[])
|
|
|
req[1] = query[1];
|
|
|
for (i=0; i < req_length; i++) {
|
|
|
printf("(%.2X)", req[i]);
|
|
|
- usleep(500);
|
|
|
+ usleep(5000);
|
|
|
send(w_s, (const char*)(req + i), 1, MSG_NOSIGNAL);
|
|
|
}
|
|
|
continue;
|