Skip to content

Commit

Permalink
update library interface
Browse files Browse the repository at this point in the history
  • Loading branch information
aldwinhermanudin committed Dec 14, 2023
1 parent ddcfe92 commit 4eb6503
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/mbedos/test-bme688/source/bme688/BME688.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ void BME688::DumpData()
printf("IAQ Accuracy:%d",sensor_data.iaq_accuracy);
}

bool BME688::isNewDataAvailable()
bool BME688::IsNewDataAvailable()
{
return new_data_available;
}
Expand Down
2 changes: 1 addition & 1 deletion src/mbedos/test-bme688/source/bme688/BME688.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class BME688{
BME688 ( PinName i2c_sda, PinName i2c_scl, uint32_t bme688_addr );
void DoMeasurements();
SensorData GetLatest();
bool isNewDataAvailable();
bool IsNewDataAvailable();
ReturnCode Initialise();
void DumpData();

Expand Down
2 changes: 1 addition & 1 deletion src/mbedos/test-bme688/source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ int main()
{
ThisThread::sleep_for(15s);
printf("checking if data is available\n\r");
if(iaq_sensor.isNewDataAvailable())
if(iaq_sensor.IsNewDataAvailable())
{
// toggle pin if new data found
led0 = !led0;
Expand Down

0 comments on commit 4eb6503

Please sign in to comment.