Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
stanleyhuangyc committed Oct 27, 2021
1 parent 56b8295 commit a95ab64
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
1 change: 1 addition & 0 deletions libraries/FreematicsPlus/FreematicsMEMS.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
8 changes: 0 additions & 8 deletions libraries/FreematicsPlus/FreematicsPlus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,6 @@ static void gps_decode_task(void* inst)
}
}

extern "C" {
int32_t hall_sens_read();
}

// get chip temperature sensor
int readChipTemperature()
{
Expand Down Expand Up @@ -177,11 +173,7 @@ int readChipTemperature()

int readChipHallSensor()
{
#ifdef ARDUINO_ESP32C3_DEV
return 0; // FIXME
#else
return hall_sens_read();
#endif
}

uint16_t getFlashSize()
Expand Down

0 comments on commit a95ab64

Please sign in to comment.