Merge pull request #26 from LeonMatthes/patch-1

Correct axes remapping of BMA423
pull/28/head
SQFMI 2021-01-29 17:38:07 -05:00 committed by GitHub
commit 2319591449
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 5 deletions

View File

@ -583,11 +583,12 @@ void Watchy::_bmaConfig(){
struct bma423_axes_remap remap_data;
remap_data.x_axis = 1;
remap_data.x_axis_sign = 0;
remap_data.x_axis_sign = 0xFF;
remap_data.y_axis = 0;
remap_data.y_axis_sign = 0;
remap_data.z_axis = 2;
remap_data.z_axis_sign = 0;
remap_data.y_axis_sign = 0xFF;
remap_data.z_axis = 2;
remap_data.z_axis_sign = 0xFF;
// Need to raise the wrist function, need to set the correct axis
sensor.setRemapAxes(&remap_data);
@ -803,4 +804,4 @@ void Watchy::updateFWBegin(){
// time_t t = makeTime(tm);
// return t + FUDGE; //add fudge factor to allow for compile time
// }
// }