Skip to content

The freq is not initialized #1

@limbo666

Description

@limbo666

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions