From 05accf9eeb4de22d8aa3763e6ef08e708a79e613 Mon Sep 17 00:00:00 2001 From: lewisxhe Date: Wed, 14 Aug 2024 17:13:09 +0800 Subject: [PATCH] [BMA423] Fixed typo --- src/SensorBMA423.hpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/SensorBMA423.hpp b/src/SensorBMA423.hpp index 7adc9de..41ecabc 100644 --- a/src/SensorBMA423.hpp +++ b/src/SensorBMA423.hpp @@ -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 @@ -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); } @@ -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; } @@ -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; } @@ -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; }