Permalink
Browse files

get_gain(): disable error checking

Workaround for librtlsdr return value confusion. See issue #19 and PR #29.
  • Loading branch information...
roger- committed Sep 2, 2015
1 parent 80e284f commit 8e71d1d9c765247b71fe96c697571fed1e04fb88
Showing with 1 addition and 1 deletion.
  1. +1 −1 rtlsdr/rtlsdr.py
View
@@ -213,7 +213,7 @@ def get_gain(self):
''' Get gain of tuner (in dB). '''
result = librtlsdr.rtlsdr_get_tuner_gain(self.dev_p)
- if result == 0:
+ if 0 and result == 0:
self.close()
raise IOError('Error when getting gain')

2 comments on commit 8e71d1d

@nocarryr

This comment has been minimized.

Show comment
Hide comment
@nocarryr

nocarryr Sep 2, 2015

Collaborator

@roger- Should this close #20 ?

Collaborator

nocarryr replied Sep 2, 2015

@roger- Should this close #20 ?

@roger-

This comment has been minimized.

Show comment
Hide comment
@roger-

roger- Sep 2, 2015

Owner

Think so, thanks!

Owner

roger- replied Sep 2, 2015

Think so, thanks!

Please sign in to comment.