We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Given the following:
import SMBus from "pins/smbus"; class Component extends SMBus { constructor(dictionary) { super(dictionary); } read(register) { return this.readByte(register); } write(register, byte) { this.writeByte(register, byte); } }
Any attempt to call read() or write() will result in the following:
stack overflow (-1)! unhandled exception
The text was updated successfully, but these errors were encountered:
I think you can solve that in smbus.js by using super.read and super.write in place of this.read and this.write.
smbus.js
super.read
super.write
this.read
this.write
Sorry, something went wrong.
I'd like to work on this this week, but I just hit #28 and cannot build/deploy code anymore :\
Latest revision of smbus.js calls read and write through super so subclasses can safely have their own read and write functions.
read
write
super
XS: secaudit issue #22
c109439
No branches or pull requests
Given the following:
Any attempt to call read() or write() will result in the following:
The text was updated successfully, but these errors were encountered: