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

Lua 5.3 scripts: problem with '>>' #88

Open
alex85k opened this issue Nov 2, 2020 · 1 comment
Open

Lua 5.3 scripts: problem with '>>' #88

alex85k opened this issue Nov 2, 2020 · 1 comment

Comments

@alex85k
Copy link

alex85k commented Nov 2, 2020

I am using ESPLorer to experiment with newer NodeMCU firmware built with make LUA=53

There are problems when code includes newly introduced right shift operator >> like

a=7
b=a>>3

When saving the script to flash the process hangs and module reboots. The problem is in these 2 lines of code checking the
module answer:

data = data.replace(">> ", "");

   data = data.replace(">> ", "");
   data = data.replace(">>", "");

(I commented them for myself, it seems to work)

@marcelstoer
Copy link

As Lua 5.3 will become the standard sooner or later (see nodemcu/nodemcu-firmware#3144 (comment) from @TerryE) this should be addressed.

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