Skip to content

Commit

Permalink
Rename DataRate > BitRate (FSK modulation).
Browse files Browse the repository at this point in the history
  • Loading branch information
brocaar committed Apr 17, 2016
1 parent ecb0881 commit d6a86bf
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 7 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 1.1.1

* Rename DataRate to BitRate (FSK modulation)

## 1.1.0

Note that the changes below are incompatible with LoRa Server
Expand Down
4 changes: 2 additions & 2 deletions gateway/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ func newDataRateFromDatR(d DatR) (band.DataRate, error) {

if d.FSK != 0 {
dr.Modulation = band.FSKModulation
dr.DataRate = int(d.FSK)
dr.BitRate = int(d.FSK)
return dr, nil
}

Expand All @@ -461,6 +461,6 @@ func newDatRfromDataRate(d band.DataRate) DatR {
}

return DatR{
FSK: uint32(d.DataRate),
FSK: uint32(d.BitRate),
}
}
2 changes: 1 addition & 1 deletion vendor/github.com/brocaar/lorawan/band/band.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion vendor/github.com/brocaar/lorawan/band/band_eu863_870.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions vendor/vendor.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
"revisionTime": "2016-04-16T09:33:49Z"
},
{
"checksumSHA1": "JhsEl+poxTkTUc4HyjvI7KTnIiw=",
"checksumSHA1": "Aj6/AlM74fTWzev+Li6Si9KynJU=",
"origin": "github.com/brocaar/lora-semtech-bridge/vendor/github.com/brocaar/lorawan/band",
"path": "github.com/brocaar/lorawan/band",
"revision": "61f52e3008626c275b62a72090a7ef13a6294764",
"revisionTime": "2016-04-16T09:33:49Z"
"revision": "701d895780c438307bba7f70991be16b6b4955a3",
"revisionTime": "2016-04-17T10:01:52Z"
},
{
"path": "github.com/codegangsta/cli",
Expand Down

0 comments on commit d6a86bf

Please sign in to comment.