Skip to content

Commit 37a020c

Browse files
authored
Merge pull request #121 from finitespace/117-non-void-return
85 non void return
2 parents 7a211f0 + 0e9e15c commit 37a020c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/BME280.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ bool BME280::Initialize()
6969

7070

7171
/****************************************************************/
72-
bool BME280::InitializeFilter()
72+
void BME280::InitializeFilter()
7373
{
7474
// Force an unfiltered measurement to populate the filter buffer.
7575
// This fixes a bug that causes the first read to always be 28.82 °C 81732.34 hPa.
@@ -110,7 +110,7 @@ bool BME280::ReadChipID()
110110

111111

112112
/****************************************************************/
113-
bool BME280::WriteSettings()
113+
void BME280::WriteSettings()
114114
{
115115
uint8_t ctrlHum, ctrlMeas, config;
116116

src/BME280.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ class BME280
213213
///////////////////////////////////////////////////////////////
214214
/// Force a unfiltered measurement to populate the filter
215215
/// buffer.
216-
bool InitializeFilter();
216+
void InitializeFilter();
217217

218218

219219
/*****************************************************************/
@@ -296,7 +296,7 @@ class BME280
296296

297297
/////////////////////////////////////////////////////////////////
298298
/// Write the settings to the chip.
299-
bool WriteSettings();
299+
void WriteSettings();
300300

301301

302302
/////////////////////////////////////////////////////////////////

0 commit comments

Comments
 (0)