v1993 / linuxmotehook

Cemuhook-compliant WiiMote motion provider for Linux
Apache License 2.0
14 stars 0 forks source link

lua5.3: ./autocalibrate.lua:43: bad argument #1 to 'format' #6

Closed cipitaua closed 3 years ago

cipitaua commented 3 years ago

Hello,

I've successfully compiled lua-xwiimote and after connecting wiimote with bluetooth and running ./autocalibrate.lua I get the following error:

lua5.3: ./autocalibrate.lua:43: bad argument #1 to 'format' (number expected, got nil)
stack traceback:
        [C]: in function 'string.format'
        ./autocalibrate.lua:43: in main chunk
        [C]: in ?

The wiimote is correcty detected by xwiishow:

Listing connected Wii Remote devices:
  Found device #1: /sys/devices/virtual/misc/uhid/0005:057E:0306.0002
End of device list
v1993 commented 3 years ago

Please check out latest master, should be fixed now. Thanks for reporting!

cipitaua commented 3 years ago

it solves, thank you!