Skip to content

Commit a3cb5f1

Browse files
committed
devices: fix the message displayed when the XBee device protocol is not correct
Signed-off-by: Diego Escalona <diego.escalona@digi.com>
1 parent 8e14697 commit a3cb5f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

digi/xbee/devices.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ def read_device_info(self):
316316

317317
if orig_protocol is not None and orig_protocol != XBeeProtocol.UNKNOWN and orig_protocol != self._protocol:
318318
raise XBeeException("Error reading device information: "
319-
"Your module seems to be %s and NOT %s. " % (self.get_protocol(), orig_protocol) +
319+
"Your module seems to be %s and NOT %s. " % (self._protocol, orig_protocol) +
320320
"Check if you are using the appropriate device class.")
321321

322322
# 64-bit address:

0 commit comments

Comments
 (0)