Skip to content

Commit

Permalink
Fix UART limit variable
Browse files Browse the repository at this point in the history
  • Loading branch information
xreef committed Mar 17, 2022
1 parent d3f9fc4 commit b014fe1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions LoRa_E22.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* EBYTE LoRa E22 Series
*
* AUTHOR: Renzo Mischianti
* VERSION: 1.0.4
* VERSION: 1.0.5
*
* https://www.mischianti.org
*
Expand Down Expand Up @@ -344,7 +344,7 @@ class LoRa_E22 {

struct NeedsStream {
template<typename T>
void begin(T &t, int baud) {
void begin(T &t, uint32_t baud) {
DEBUG_PRINTLN("Begin ");
t.setTimeout(500);
t.begin(baud);
Expand All @@ -361,15 +361,15 @@ class LoRa_E22 {
// }
//
template< typename T >
void begin( T &t, int baud, uint32_t config ) {
void begin( T &t, uint32_t baud, uint32_t config ) {
DEBUG_PRINTLN("Begin ");
t.setTimeout(500);
t.begin(baud, config);
stream = &t;
}

template< typename T >
void begin( T &t, int baud, uint32_t config, int8_t txE32pin, int8_t rxE32pin ) {
void begin( T &t, uint32_t baud, uint32_t config, int8_t txE32pin, int8_t rxE32pin ) {
DEBUG_PRINTLN("Begin ");
t.setTimeout(500);
t.begin(baud, config, txE32pin, rxE32pin);
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@


## Changelog
- 2022-03-14 1.0.5 Fix UART baud rate variable limit
- 2022-02-23 1.0.4 Add Arduino NANO 33 BLE support and minor change
- 2022-02-03 1.0.3 Fix file example length
- 2022-01-24 1.0.2 Memory leak fix and adjustment
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=EByte LoRa E22 library
version=1.0.4
version=1.0.5
author=Renzo Mischianti <[email protected]>
maintainer=Renzo Mischianti <[email protected]>
sentence=LoRa EBYTE E22 device library complete and tested with Arduino, Arduino SAMD (Nano 33 IoT and MKR), esp8266 and esp32. sx1262/sx1268
Expand Down

0 comments on commit b014fe1

Please sign in to comment.