|
1 | | -# Copyright 2017, Digi International Inc. |
| 1 | +# Copyright 2017, 2018, Digi International Inc. |
2 | 2 | # |
3 | 3 | # This Source Code Form is subject to the terms of the Mozilla Public |
4 | 4 | # License, v. 2.0. If a copy of the MPL was not distributed with this |
@@ -294,9 +294,9 @@ def __init__(self, io_sample_payload): |
294 | 294 | self.__io_sample_payload = io_sample_payload |
295 | 295 |
|
296 | 296 | if len(self.__io_sample_payload) % 2 != 0: |
297 | | - self.parse_raw_io_sample() |
| 297 | + self.__parse_raw_io_sample() |
298 | 298 | else: |
299 | | - self.parse_io_sample() |
| 299 | + self.__parse_io_sample() |
300 | 300 |
|
301 | 301 | def __str__(self): |
302 | 302 | s = "{" |
@@ -325,7 +325,7 @@ def min_io_sample_payload(): |
325 | 325 | """ |
326 | 326 | return IOSample.__MIN_IO_SAMPLE_PAYLOAD_LENGTH |
327 | 327 |
|
328 | | - def parse_raw_io_sample(self): |
| 328 | + def __parse_raw_io_sample(self): |
329 | 329 | """ |
330 | 330 | Parses the information contained in the IO sample bytes reading the |
331 | 331 | value of each configured DIO and ADC. |
@@ -378,7 +378,7 @@ def parse_raw_io_sample(self): |
378 | 378 | data_index += 2 |
379 | 379 | adc_index += 1 |
380 | 380 |
|
381 | | - def parse_io_sample(self): |
| 381 | + def __parse_io_sample(self): |
382 | 382 | """ |
383 | 383 | Parses the information contained in the IO sample bytes reading the |
384 | 384 | value of each configured DIO and ADC. |
|
0 commit comments