Skip to content
New issue

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

_write fails when writing number to file #64

Open
nojasm opened this issue Aug 7, 2023 · 0 comments
Open

_write fails when writing number to file #64

nojasm opened this issue Aug 7, 2023 · 0 comments

Comments

@nojasm
Copy link

nojasm commented Aug 7, 2023

The _write() function fails when the user is exporting a GPIO port:

TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received type number (15)

Adding .toString() to the fs.writeFile() 'str' option seams to do the job just fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant