jdiazbb / rfxcmd

Automatically exported from code.google.com/p/rfxcmd
1 stars 0 forks source link

Crash vith CSV output #39

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
$ ./rfxcmd.py -d /dev/ttyUSB0 -l -c
Traceback (most recent call last):
  File "./rfxcmd.py", line 4071, in <module>
    main()
  File "./rfxcmd.py", line 4030, in main
    option_listen()
  File "./rfxcmd.py", line 3400, in option_listen
    rawcmd = read_rfx()
  File "./rfxcmd.py", line 3154, in read_rfx
    decodePacket( message )
  File "./rfxcmd.py", line 2910, in decodePacket
    sys.stdout.write("%s;%s;%s;%s;%s;%s;%s\n" % (timestamp, unixtime_utc, packettype, subtype, seqnbr, id1 + id2, str(power)))
UnboundLocalError: local variable 'power' referenced before assignment

What version of the product are you using? On what operating system?
rfxcmd 0.3 alpha2
Linux 3.15.2-1-ARCH #1 SMP PREEMPT Fri Jun 27 07:41:19 CEST 2014 x86_64 
GNU/Linux

Original issue reported on code.google.com by jbbod...@gmail.com on 30 Jun 2014 at 8:45

GoogleCodeExporter commented 8 years ago

Original comment by sebastia...@gmail.com on 1 Jul 2014 at 2:14

GoogleCodeExporter commented 8 years ago
Fixed in RFXcmd v0.3-Alpha3

Original comment by sebastia...@gmail.com on 5 Jul 2014 at 5:52