Skip to content

Commit

Permalink
io: change visibility of io sample parser methods to private
Browse files Browse the repository at this point in the history
Signed-off-by: Héctor González <[email protected]>
  • Loading branch information
hgonzaleDigi authored and diescalo committed Jan 18, 2018
1 parent 17e21a3 commit b6c8dbc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions digi/xbee/io.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2017, Digi International Inc.
# Copyright 2017, 2018, Digi International Inc.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
Expand Down Expand Up @@ -294,9 +294,9 @@ def __init__(self, io_sample_payload):
self.__io_sample_payload = io_sample_payload

if len(self.__io_sample_payload) % 2 != 0:
self.parse_raw_io_sample()
self.__parse_raw_io_sample()
else:
self.parse_io_sample()
self.__parse_io_sample()

def __str__(self):
s = "{"
Expand Down Expand Up @@ -325,7 +325,7 @@ def min_io_sample_payload():
"""
return IOSample.__MIN_IO_SAMPLE_PAYLOAD_LENGTH

def parse_raw_io_sample(self):
def __parse_raw_io_sample(self):
"""
Parses the information contained in the IO sample bytes reading the
value of each configured DIO and ADC.
Expand Down Expand Up @@ -378,7 +378,7 @@ def parse_raw_io_sample(self):
data_index += 2
adc_index += 1

def parse_io_sample(self):
def __parse_io_sample(self):
"""
Parses the information contained in the IO sample bytes reading the
value of each configured DIO and ADC.
Expand Down

0 comments on commit b6c8dbc

Please sign in to comment.