dobra-noc / gm1356

Digital Sound Level Meter Gm1356 USB driver for Linux
41 stars 9 forks source link

Error when running gm1356 #4

Closed VijayDoshi closed 5 years ago

VijayDoshi commented 5 years ago

Hi, I am getting this when I run the gm1356. Any hints as to what I am doing wrong?

pi@raspberrypi:~ $ gm1356 Traceback (most recent call last): 6: from /usr/local/bin/gm1356:23:in <main>' 5: from /usr/local/bin/gm1356:23:inload' 4: from /var/lib/gems/2.5.0/gems/gm1356-0.0.4/bin/gm1356:40:in <top (required)>' 3: from /var/lib/gems/2.5.0/gems/gm1356-0.0.4/bin/gm1356:40:innew' 2: from /var/lib/gems/2.5.0/gems/gm1356-0.0.4/lib/gm1356/device.rb:16:in initialize' 1: from /var/lib/gems/2.5.0/gems/gm1356-0.0.4/lib/gm1356/device.rb:48:inread_current_state' /var/lib/gems/2.5.0/gems/gm1356-0.0.4/lib/gm1356/device.rb:63:in send_state_request': undefined methodwrite' for nil:NilClass (NoMethodError)

Thanks!

VijayDoshi commented 5 years ago

This can be resolved I had to look up the device name and add a 0x to the string.