Skip to content

Commit

Permalink
Fix DR reset with ADR enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
beegee-tokyo committed Jul 1, 2024
1 parent 98ef65b commit 7554799
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ Arduino library for LoRa communication with Semtech SX126x chips. It is based on

# Release Notes

# V2.0.25 Fix DR reset with ADR enabled
- With ADR enabled, fix the DR reset to default when confirmed/unconfirmed packets are sent.

## V2.0.24 Fix P2P RX timeout callback fails
- Fix callbacks for P2P RX and TX timeout not being called

Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,8 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
----
## Changelog
[Code releases](CHANGELOG.md)
- 2024-06-26
- With ADR enabled, fix the DR reset to default when confirmed/unconfirmed packets are sent.
- 2024-02-24
- Fix callbacks for P2P RX and TX timeout not being called
- 2023-12-14
Expand Down
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "SX126x-Arduino",
"version": "2.0.24",
"version": "2.0.25",
"keywords": [
"lora",
"Semtech",
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=SX126x-Arduino
version=2.0.24
version=2.0.25
author=Bernd Giesecke <[email protected]>
maintainer=Bernd Giesecke <[email protected]>
sentence=Arduino library to use Semtech SX126x LoRa chips and modules to communicate
Expand Down
3 changes: 3 additions & 0 deletions src/mac/LoRaMacHelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,10 @@ static void McpsConfirm(McpsConfirm_t *mcpsConfirm)
{
m_callbacks->lmh_conf_result(mcpsConfirm->AckReceived);
// Workaround, reset MAC state
// Workaround for DR reset when ADR is active
int8_t preserve_dr = LoRaMacParams.ChannelsDatarate;
lmh_reset_mac();
LoRaMacParams.ChannelsDatarate = preserve_dr;
}
break;
}
Expand Down

0 comments on commit 7554799

Please sign in to comment.