Giter Club home page Giter Club logo

Comments (8)

jritz1349 avatar jritz1349 commented on June 10, 2024 1

from arduino-ms5xxx.

Schm1tz1 avatar Schm1tz1 commented on June 10, 2024 1

Done, PR is #10

from arduino-ms5xxx.

jritz1349 avatar jritz1349 commented on June 10, 2024 1

from arduino-ms5xxx.

Schm1tz1 avatar Schm1tz1 commented on June 10, 2024

Hi, that's intersting. Can you give the line number of the error? Any special version of arduino or the compiler you are using?
IMO it should be https://github.com/Schm1tz1/arduino-ms5xxx/blob/master/src/MS5611.cpp#L29C18-L29C18 but trying to verify. That line is not best code style but should be valid for Seeduino as far as I can see. Will need to look into this.

from arduino-ms5xxx.

Schm1tz1 avatar Schm1tz1 commented on June 10, 2024

Gotcha! Installed the boards according to https://wiki.seeedstudio.com/Seeed_Arduino_Boards/ and could reproduce the error. According to the docs, unsigned long is a valid type for Seeeduino so I tested that with a minimal example and it works. I found that Seeeduino is using global constants D1 and D2 and compile was crashing due to a conflict. I fixed it locally by renaming like this:

void MS5611::Readout() {
	unsigned long l_D1=0, l_D2=0;
	
	double dT;
	double OFF;
	double SENS;

	l_D2=read_adc(MS5xxx_CMD_ADC_D2+MS5xxx_CMD_ADC_4096);
	l_D1=read_adc(MS5xxx_CMD_ADC_D1+MS5xxx_CMD_ADC_4096);
...

Will push a patch later so we have a working release online.

from arduino-ms5xxx.

jritz1349 avatar jritz1349 commented on June 10, 2024

from arduino-ms5xxx.

jritz1349 avatar jritz1349 commented on June 10, 2024

from arduino-ms5xxx.

Schm1tz1 avatar Schm1tz1 commented on June 10, 2024

Yes, exactly, all occurrences in the code are renamed.
You can simply use the new release, it's already fixed in 1.1.1 and available in Arduino librararies. Just update it in your IDE and it should work.

from arduino-ms5xxx.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.