From 1e388d98b803fa372a06ec596cdd472ef1e81143 Mon Sep 17 00:00:00 2001 From: Scott Petersen Date: Mon, 28 Oct 2013 12:12:20 -0700 Subject: [PATCH] Oops. --- pyad2usb/messages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyad2usb/messages.py b/pyad2usb/messages.py index 3953a6c..562e3e3 100644 --- a/pyad2usb/messages.py +++ b/pyad2usb/messages.py @@ -192,7 +192,7 @@ class RFMessage(object): self.serial_number, self.value = values.split(',') self.value = int(self.value, 16) - is_bit_set = lambda v, b: self.value & (1 << b) > 0 + is_bit_set = lambda b: self.value & (1 << b) > 0 # Bit 1 = unknown self.battery = is_bit_set(2)