Skip to content

Commit

Permalink
Merge pull request #1 from jourdant/master
Browse files Browse the repository at this point in the history
Fixed regression with SoftUART support
  • Loading branch information
dmascord authored May 10, 2020
2 parents c942c63 + 56bc3a5 commit a94daeb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ with open('us2n.json', 'w') as f:

```

**Note: if you are running us2n on an ESP32, specifying rx and tx pins is supported on hardware UART.**

* Or, create a file called `us2n.json` with a json configuration for SoftUART:

```python
Expand Down
2 changes: 1 addition & 1 deletion us2n.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def parse_bind_address(addr, default=None):

def UART(config):
config = dict(config)
uart_type = config.pop('type')
uart_type = config.pop('type') if 'type' in config.keys() else 'hw'
port = config.pop('port')
if uart_type == 'SoftUART':
print('Using SoftUART...')
Expand Down

0 comments on commit a94daeb

Please sign in to comment.