CHG: added timeouts for downloading values from device, to make the client more responsive.

CHG: still curious for the printf_hex_breaks method, why it behavies strange.
This commit is contained in:
iceman1001 2016-02-16 10:54:41 +01:00
commit f7f844d0ba
2 changed files with 15 additions and 6 deletions

View file

@ -110,8 +110,8 @@ void print_hex_break(const uint8_t *data, const size_t len, uint8_t breaks) {
printf("%02X ", data[i]);
// check if a line break is needed
if ( (breaks > 0) && (i > 0) && !(i % breaks) )
printf("(%d %d)\n", i , breaks);
if ( breaks > 0 && !(i+1 % breaks) )
printf("(%d %d)\n", i+1 , breaks);
}
printf("\n");
}