time.sleep_ms -> wrong argument type ?!
in my patch i have said "import time"
and then later on i write time.sleep_ms(500)
but the compiler tells me:
Traceback (most recent call last):
File "main.py", line 14, in <module>
TypeError: argument has wrong type
and i go like "wait, what.. wHAT??"
current firmware is 1.6.13.b1
but i never have had problem with line number in error message
Do you have line break as LF or CRLF or mixed?
ok so apparently it's the compiler that's pretty useless. the problem was not (despite the compiler saying so) line 14, but something in my initialization of SPI.
os.uname gives me:
(sysname='LoPy', nodename='LoPy', release='1.6.8.b2', version='v1.8.6-530-gca8bdcbb on 2017-03-21', machine='LoPy with ESP32', lorawan='1.0.0')
which firmware version?
and are you sure that line 14 is about
Or it contain var instead of 500?