compuphase / Black-Magic-Probe-Book

A guide plus associated utilities for the Black Magic Probe.
Apache License 2.0
147 stars 26 forks source link

Parsing test of traceswo response incorrect #14

Closed sidprice closed 4 years ago

sidprice commented 4 years ago

The following line is incorrect in bmp-support.c:

ok = ((ptr = strchr(buffer, ':')) != NULL && strtol(ptr + 1, &ptr, 16) != 5 && *ptr == ':');

It should be:

ok = ((ptr = strchr(buffer, ':')) != NULL && strtol(ptr + 1, &ptr, 16) == 5 && *ptr == ':');

compuphase commented 4 years ago

Oops... Thanks. Fix commited in 7963c08b55b54aa0bd0a876f57320aad4a7d4dd2.