Giter VIP home page Giter VIP logo

Comments (4)

greenbreakfast avatar greenbreakfast commented on June 20, 2024

Yes, we had seen this as well and fixed it in the read-fix branch. It just never got brought to the master branch.

Did it now, will release an updated package soon!

from i2c-exp-driver.

maxgerhardt avatar maxgerhardt commented on June 20, 2024

Is this true? Seems like it was never merged. There are still offending lines:

https://github.com/OnionIoT/i2c-exp-driver/blob/master/src/lib/onion-i2c.c#L313

Re-discovered these while trying to write a I2C device driver and wondering why my programm keeps crashing with a corrupted stack.

from i2c-exp-driver.

greenbreakfast avatar greenbreakfast commented on June 20, 2024

The read-fix branch was indeed merged but it only had fixes for the i2c_write() and i2c_readByte() functions. This function, i2c_readRaw(), had the same issue but was overlooked.

In any case, it's fixed now and part of the v0.7 libonioni2c release. Please try it out and let me know if you have any issues.

from i2c-exp-driver.

maxgerhardt avatar maxgerhardt commented on June 20, 2024

The code looks good now. I was able to remove my workarounds for library bugs and it does work with the newest version! Issue can be closed IMO.

from i2c-exp-driver.

Related Issues (17)

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.