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

The freq is not initialized #1

Open
limbo666 opened this issue Mar 25, 2017 · 1 comment
Open

The freq is not initialized #1

limbo666 opened this issue Mar 25, 2017 · 1 comment

Comments

@limbo666
Copy link

limbo666 commented Mar 25, 2017

Running on the latest nodemcu firmware (stable channel)
When running the lines one by one the three tones are sounding.

However when a file is saved on the esp file system and I use dofile command to call it, the following error is raised:
PANIC: unprotected error in call to Lua API (bz.lua:12: attempt to concatenate global 'freq' (a nil value))"

It seems that the code cannot initialize the freq variable correctly.

@Hydhen
Copy link
Owner

Hydhen commented Mar 25, 2017

Have you changed the code inside buzzer.lua ?

Did you gave an outside range index as second parameter to beep() ?

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

2 participants