Skip to content

Commit

Permalink
Update FreematicsPlus.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
stanleyhuangyc committed Oct 25, 2021
1 parent b1b2dea commit d02b9a7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions libraries/FreematicsPlus/FreematicsPlus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ int32_t hall_sens_read();
int readChipTemperature()
{
#if CONFIG_IDF_TARGET_ESP32C3
bool inited = false;
static bool inited = false;
float tsens_out = 0;
if (!inited) {
temp_sensor_config_t temp_sensor = TSENS_CONFIG_DEFAULT();
Expand Down Expand Up @@ -178,7 +178,11 @@ int readChipTemperature()

int readChipHallSensor()
{
return hall_sens_read();
#if CONFIG_IDF_TARGET_ESP32C3
return 0; // FIXME
#else
return hall_sens_read();
#endif
}

uint16_t getFlashSize()
Expand Down

0 comments on commit d02b9a7

Please sign in to comment.