Hello Weaver,
The code I provided has the same function as the code on GitHub and works normally. BMA456 also support TAP detection, you could see example code from here: https://github.com/BoschSensortec/BMA456-Sensor-API/blob/master/examples/bma456/generic/tap.c
... View more