Skip to content

Commit

Permalink
[BMA423] Fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
lewisxhe committed Aug 14, 2024
1 parent ed08766 commit 05accf9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/SensorBMA423.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,7 @@ class SensorBMA423 :
return 0;
}

bool setReampAxes(SensorRemap remap)
bool setRemapAxes(SensorRemap remap)
{
//Top
// No.1 REG: 0x3e -> 0x88 REG: 0x3f -> 0x0
Expand Down Expand Up @@ -515,7 +515,7 @@ class SensorBMA423 :
return writeRegister(interrupt_address_array[int_line], &data, 1) != DEV_WIRE_ERR;
}

bool configreFeatureInterrupt(uint16_t feature_interrupt_mask, bool enable)
bool configFeatureInterrupt(uint16_t feature_interrupt_mask, bool enable)
{
return interruptMap(int_line, feature_interrupt_mask, enable);
}
Expand Down Expand Up @@ -776,7 +776,7 @@ class SensorBMA423 :
uint8_t val;
val = readRegister(BMA4_INTERNAL_STAT);
if (val == BMA4_ASIC_INITIALIZED) {
LOG("%s No need configure!\n", __func__);
log_d("No need configure!");
readIrqStatus(); //clear irq status
return true;
}
Expand All @@ -800,9 +800,9 @@ class SensorBMA423 :
delay(150);
val = readRegister(BMA4_INTERNAL_STAT);
if (val == BMA4_ASIC_INITIALIZED) {
LOG("%s SUCCESS!\n", __func__);
log_d("BMA configure SUCCESS!");
} else {
LOG("%s FAILED!\n", __func__);
log_d("BMA configure FAILED!");
}
return val == BMA4_ASIC_INITIALIZED;
}
Expand All @@ -823,7 +823,7 @@ class SensorBMA423 :
return configure();
}

LOG("ChipID:0x%x should be 0x%x\n", id, BMA423_CHIP_ID);
log_d("ChipID:0x%x should be 0x%x", id, BMA423_CHIP_ID);
return false;

}
Expand Down

0 comments on commit 05accf9

Please sign in to comment.