Skip to content
This repository has been archived by the owner on Jan 10, 2022. It is now read-only.

bad argument #8

Closed
cipitaua opened this issue Aug 14, 2021 · 4 comments
Closed

bad argument #8

cipitaua opened this issue Aug 14, 2021 · 4 comments

Comments

@cipitaua
Copy link

on ubuntu-devel I'm trying the latest "bundled" package from this repository and got myself libffi6, as suggested here, but I get the following error:

$ ./main.lua 
Note: no MotionPlus detected, providen data will be limited to acceleration only
If you have one, it can be hotplugged now

lua5.3: /home/me/Apps/linuxmotehook_0.2.2/wiimote.lua:189: bad argument #1 to 'format' (number expected, got nil)
stack traceback:
        [C]: in function 'string.format'
        /home/me/Apps/linuxmotehook_0.2.2/wiimote.lua:189: in field 'setup'
        ./main.lua:104: in main chunk
        [C]: in ?
@v1993
Copy link
Owner

v1993 commented Aug 14, 2021

Can you, please, replace

desc.mac = common.pathToMac(path)

with

	desc.mac = common.pathToMac(path); print(path)

and post what it prints?

@cipitaua
Copy link
Author

cipitaua commented Aug 14, 2021

it additionally prints the following line:

/sys/devices/pci0000:00/0000:00:14.0/usb1/1-7/1-7:1.0/bluetooth/hci0/hci0:256/0005:057E:0306.006C

@v1993
Copy link
Owner

v1993 commented Aug 14, 2021

Actually, is this fixed if you manually apply change from db3668e? It's not included into latest bundle, I probably should release an update.

@cipitaua
Copy link
Author

yes it was that, I though latest release was updated. Anyway I get the usual Lgi:ERROR:marshal.c error :(

closing, thank you

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants