mitsu70x: Fix inverted calculation.

master
Solomon Peachy 2 years ago
parent fe5e8f38c2
commit fd2d143363
  1. 6
      backend_mitsu70x.c

@ -1529,17 +1529,17 @@ static int mitsu70x_test_dump(struct mitsu70x_ctx *ctx)
memcpy(buf, calinfo->adj_vertA, 2);
f = strtol(buf, NULL, 16);
if (f > 127) f -= 256;
f /= 0.08;
f *= 0.08;
INFO("Vertical Calibration A: %2.2f\n", f);
memcpy(buf, calinfo->adj_vertB, 2);
f = strtol(buf, NULL, 16);
if (f > 127) f -= 256;
f /= 0.08;
f *= 0.08;
INFO("Vertical Calibration B: %2.2f\n", f);
memcpy(buf, calinfo->adj_vertC, 2);
f = strtol(buf, NULL, 16);
if (f > 127) f -= 256;
f /= 0.08;
f *= 0.08;
INFO("Vertical Calibration C: %2.2f\n", f);
}

Loading…
Cancel
Save