Skip to content

Commit

Permalink
Minor fix on debug and bug on UART data rate
Browse files Browse the repository at this point in the history
  • Loading branch information
xreef committed Mar 9, 2022
1 parent f075870 commit ddd18f0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
1 change: 0 additions & 1 deletion LoRa_E32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,6 @@ void LoRa_E32::writeProgramCommand(PROGRAM_COMMAND cmd){
uint8_t CMD[3] = {cmd, cmd, cmd};
// uint8_t size =
this->serialDef.stream->write(CMD, 3);
DEBUG_PRINTLN(size);
this->managedDelay(50); //need ti check
}

Expand Down
8 changes: 4 additions & 4 deletions LoRa_E32.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* EBYTE LoRa E32 Series
*
* AUTHOR: Renzo Mischianti
* VERSION: 1.5.3
* VERSION: 1.5.5
*
* https://www.mischianti.org/category/my-libraries/lora-e32-devices/
*
Expand Down Expand Up @@ -263,7 +263,7 @@ class LoRa_E32 {

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 @@ -280,15 +280,15 @@ class LoRa_E32 {
// }
//
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 @@ -24,6 +24,7 @@
7. [LoRa E32 device for Arduino, esp32 or esp8266: WOR (wake on radio) microcontroller and new WeMos D1 mini shield](https://www.mischianti.org/2020/01/17/lora-e32-device-for-arduino-esp32-or-esp8266-wor-wake-on-radio-microcontroller-and-new-wemos-d1-mini-shield-part-7/)

## Changelog
- 2021-03-09 1.5.5 Fix UART baudrate variable and debug println
- 2021-01-24 1.5.4 Add Arduino Nano BLE support and minor adjustment
- 2021-12-31 1.5.3 Add support for Arduino SAMD boards

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 E32 library
version=1.5.4
version=1.5.5
author=Renzo Mischianti <[email protected]>
maintainer=Renzo Mischianti <[email protected]>
sentence=LoRa EBYTE E32 device library complete and tested with Arduino, Arduino SAMD, esp8266 and esp32. sx1278/sx1276.
Expand Down

0 comments on commit ddd18f0

Please sign in to comment.