Skip to content
This repository has been archived by the owner on Dec 15, 2019. It is now read-only.

Commit

Permalink
Removing Mock() from base controller, fixing frequency.
Browse files Browse the repository at this point in the history
  • Loading branch information
rcludwick committed Jul 8, 2018
1 parent 4fc9099 commit 71e271f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 0 additions & 3 deletions src/sx127x/controller/base_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@

class BaseController:

class Mock:
pass

ON_BOARD_LED_PIN_NO = None
ON_BOARD_LED_HIGH_IS_ON = True
GPIO_PINS = []
Expand Down
4 changes: 2 additions & 2 deletions src/sx127x/sx127x.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ def __init__(self, frequency, name = 'SX127x', on_receive = None, **kwargs):
:param frequency: e.g. "915E6"
"""

parameters = {'tx_power_level': 2, 'signal_bandwidth': 125E3,
parameters = {'frequency': frequency, 'tx_power_level': 2, 'signal_bandwidth': 125E3,
'spreading_factor': 8, 'coding_rate': 5, 'preamble_length': 8,
'implicitHeader': False, 'sync_word': 0x12, 'enable_CRC': False}

self._frequency = frequency
self.frequency = frequency
parameters.update(**kwargs)
self.name = name
self.parameters = parameters
Expand Down

0 comments on commit 71e271f

Please sign in to comment.