FemmeVerbeek / Arduino_LSM9DS1

LSM9DS1 Library for Arduino
Other
63 stars 14 forks source link

setMagnetODR Error #24

Open trexmiller opened 2 years ago

trexmiller commented 2 years ago

Upon compilation...

/Users/trexmiller/Documents/Arduino/libraries/Arduino_LSM9DS1/src/LSM9DS1.cpp: In member function 'virtual int LSM9DS1Class::setMagnetODR(uint8_t)':

/Users/trexmiller/Documents/Arduino/libraries/Arduino_LSM9DS1/src/LSM9DS1.cpp:449:12: error: control reaches end of non-void function [-Werror=return-type] 449 | magnetODR= measureMagnetODR(duration); //measure the actual ODR value | ~~~^~~~~~ cc1plus: some warnings being treated as errors

Using earlier version (1f5a19dbfae6aa72236273ad24e0aef7378d1f12) compiles with no errors

FemmeVerbeek commented 2 years ago

Hi Todd,LSM9DS1 was written as update.You must remove the old version completely from the directory where the libraries are stored.Better ask these questions in the arduino forum. I have little time.FemmeMet vriendelijke groetFemme Verbeek06 2606 0303 -------- Oorspronkelijk bericht --------Van: Todd Rex Miller @.> Datum: 23-05-22 17:26 (GMT+01:00) Aan: FemmeVerbeek/Arduino_LSM9DS1 @.> Cc: Subscribed @.***> Onderwerp: [FemmeVerbeek/Arduino_LSM9DS1] setMagnetODR Error (Issue #24) Upon compilation... /Users/trexmiller/Documents/Arduino/libraries/Arduino_LSM9DS1/src/LSM9DS1.cpp: In member function 'virtual int LSM9DS1Class::setMagnetODR(uint8_t)': /Users/trexmiller/Documents/Arduino/libraries/Arduino_LSM9DS1/src/LSM9DS1.cpp:449:12: error: control reaches end of non-void function [-Werror=return-type] 449 | magnetODR= measureMagnetODR(duration); //measure the actual ODR value | ~~~^~~~~~ cc1plus: some warnings being treated as errors Using earlier version (1f5a19d) compiles with no errors

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>

trexmiller commented 2 years ago

Yeah, I get it. Just that I did remove it completely, but I will check it again.

BTW, we cited your library in our latest paper to come out shortly in ACS, ES&T Water.

On May 23, 2022, at 1:01 PM, FemmeVerbeek @.***> wrote:

Hi Todd,LSM9DS1 was written as update.You must remove the old version completely from the directory where the libraries are stored.Better ask these questions in the arduino forum. I have little time.FemmeMet vriendelijke groetFemme Verbeek06 2606 0303 -------- Oorspronkelijk bericht --------Van: Todd Rex Miller @.> Datum: 23-05-22 17:26 (GMT+01:00) Aan: FemmeVerbeek/Arduino_LSM9DS1 @.> Cc: Subscribed @.***> Onderwerp: [FemmeVerbeek/Arduino_LSM9DS1] setMagnetODR Error (Issue #24) Upon compilation... /Users/trexmiller/Documents/Arduino/libraries/Arduino_LSM9DS1/src/LSM9DS1.cpp: In member function 'virtual int LSM9DS1Class::setMagnetODR(uint8_t)': /Users/trexmiller/Documents/Arduino/libraries/Arduino_LSM9DS1/src/LSM9DS1.cpp:449:12: error: control reaches end of non-void function [-Werror=return-type] 449 | magnetODR= measureMagnetODR(duration); //measure the actual ODR value | ~~~^~~~~~ cc1plus: some warnings being treated as errors Using earlier version (1f5a19d) compiles with no errors

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***> — Reply to this email directly, view it on GitHub https://github.com/FemmeVerbeek/Arduino_LSM9DS1/issues/24#issuecomment-1134975879, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEDN4J6U2LEKKYEJO4BL7CLVLPBW7ANCNFSM5WWHPZQA. You are receiving this because you authored the thread.