Closed greg-norris closed 6 years ago
Hi @greg-norris,
I'm not going to merge this PR, as your fix applies to all mbed os targets, of which the brainpad is just one. By modifying this file, all future mbedos devices (i'm adding one today) will be affected.
A better fix is to simply address the code paths in mbed-os and submit the recompiled files, see #6.
Sorry for being difficult 😅
@greg-norris an alternate, equally acceptable fix, is to subclass MbedPin
and apply your patch. If you make that patch and submit the PR to https://github.com/lancaster-university/codal-brainpad , I would gladly accept that.
Corrects the values we get from the sensor.