mirror of
git://projects.qi-hardware.com/antorcha.git
synced 2024-11-01 07:24:58 +02:00
tools/ant-cl/ant-cl.c (send_diag): print the requested pattern (if verbose)
This commit is contained in:
parent
206eb4d591
commit
2de055ce1b
@ -524,8 +524,12 @@ static void send_diag(struct atrf_dsc *dsc, uint16_t pattern, uint16_t *v_bg)
|
|||||||
|
|
||||||
hash_init();
|
hash_init();
|
||||||
hash_merge(image_secret, sizeof(image_secret));
|
hash_merge(image_secret, sizeof(image_secret));
|
||||||
if (verbose)
|
if (verbose) {
|
||||||
write(2, "diag ", 5);
|
write(2, "diag ", 5);
|
||||||
|
for (i = 0; i != 16; i++)
|
||||||
|
write(2, pattern & (1 << i) ? "*" : "-", 1);
|
||||||
|
write(2, " ", 1);
|
||||||
|
}
|
||||||
memset(payload, 0, PAYLOAD);
|
memset(payload, 0, PAYLOAD);
|
||||||
payload[0] = pattern;
|
payload[0] = pattern;
|
||||||
payload[1] = pattern >> 8;
|
payload[1] = pattern >> 8;
|
||||||
|
Loading…
Reference in New Issue
Block a user