Current Lua downloadable firmware will be posted here

User avatar
By GWizez
#10840 Hi every one,

I'm new in Lua programming, I am usually working in C++

There is this sentence I need to translate in Lua and I just don't know how to formulate it:

Code: Select allThis is the sentence in C++

 bits[x] |= (1 << cnt)



Could any one be kind and help me in this task?
User avatar
By GWizez
#11334 Oh! I can do it all in one line? I kinda found the answer yesterday but I I had to do it in 2 steps. Wow! thank you this will save lot of space. Thank you again. :D