Skip to content

Commit

Permalink
Fix value overflow in AT command AT+MASK
Browse files Browse the repository at this point in the history
  • Loading branch information
beegee-tokyo committed Apr 7, 2023
1 parent c0a367b commit 8241958
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ Arduino library for RAKWireless WisBlock Core modules that takes all the LoRaWAN

# Release Notes

## 2.0.3 Fix value overflow
- Fix value overflow in AT command AT+MASK
## 2.0.2 Fix P2P bandwidths
- Fix wrong mapping for RUI3 bandwidths to WisBlock API bandwidths
- Change status output (separate LoRaWAN and P2P)
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1175,6 +1175,8 @@ AT Command functions: Taylor Lee ([email protected])
----
# Changelog
[Code releases](CHANGELOG.md)
- 2023-04-07
- Fix value overflow in AT command AT+MASK
- 2023-03-18
- Change status output (separate LoRaWAN and P2P)
- 2023-02-16
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": "WisBlock-API-V2",
"version": "2.0.2",
"version": "2.0.3",
"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=WisBlock-API-V2
version=2.0.2
version=2.0.3
author=Bernd Giesecke <[email protected]>
maintainer=Bernd Giesecke <[email protected]>
sentence=API for WisBlock Core module
Expand Down
4 changes: 2 additions & 2 deletions src/at_cmd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -790,14 +790,14 @@ static int at_exec_mask(char *str)
return AT_ERRNO_NOALLOW;
}
char *param;
uint8_t mask;
uint16_t mask;

param = strtok(str, ",");
if (param != NULL)
{
mask = strtol(param, NULL, 0);

uint8_t maxBand = 1;
uint16_t maxBand = 1;
switch (g_lorawan_settings.lora_region)
{
case LORAMAC_REGION_AU915:
Expand Down

0 comments on commit 8241958

Please sign in to comment.