From a95ab64ac986f79b02251a47a4fb4885ea17bc72 Mon Sep 17 00:00:00 2001 From: Stanley Huang Date: Thu, 28 Oct 2021 00:15:58 +1100 Subject: [PATCH] Update --- libraries/FreematicsPlus/FreematicsMEMS.cpp | 1 + libraries/FreematicsPlus/FreematicsPlus.cpp | 8 -------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/libraries/FreematicsPlus/FreematicsMEMS.cpp b/libraries/FreematicsPlus/FreematicsMEMS.cpp index f9071dad..7ad7bf8f 100644 --- a/libraries/FreematicsPlus/FreematicsMEMS.cpp +++ b/libraries/FreematicsPlus/FreematicsMEMS.cpp @@ -144,6 +144,7 @@ bool MEMS_I2C::initI2C(unsigned long clock) conf.scl_io_num = (gpio_num_t)22; conf.scl_pullup_en = GPIO_PULLUP_ENABLE; conf.master.clk_speed = clock; + conf.clk_flags = 0; return i2c_param_config(i2c_master_port, &conf) == ESP_OK && i2c_driver_install(i2c_master_port, conf.mode, 0, 0, 0) == ESP_OK; } diff --git a/libraries/FreematicsPlus/FreematicsPlus.cpp b/libraries/FreematicsPlus/FreematicsPlus.cpp index c2ad4113..ad0d3ae8 100644 --- a/libraries/FreematicsPlus/FreematicsPlus.cpp +++ b/libraries/FreematicsPlus/FreematicsPlus.cpp @@ -140,10 +140,6 @@ static void gps_decode_task(void* inst) } } -extern "C" { -int32_t hall_sens_read(); -} - // get chip temperature sensor int readChipTemperature() { @@ -177,11 +173,7 @@ int readChipTemperature() int readChipHallSensor() { -#ifdef ARDUINO_ESP32C3_DEV return 0; // FIXME -#else - return hall_sens_read(); -#endif } uint16_t getFlashSize()