Skip to content

Commit

Permalink
Merge pull request #388 from helium/madninja/remove_subnet
Browse files Browse the repository at this point in the history
Remove subnet, fix base64
  • Loading branch information
madninja authored Mar 9, 2023
2 parents 721e617 + 2efeca6 commit 7bbb716
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 349 deletions.
2 changes: 1 addition & 1 deletion Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
CROSS_TARGET = "${CARGO_MAKE_PROFILE}"
FEATURES = "ecc608"
BUILD_COMMAND = "cross"
TAR = { source = "${CARGO_MAKE_RUST_TARGET_OS}", default_value = "linux", mapping = {"macos" = "gtar", "linux" = "tar" } }
TAR = { source = "${CARGO_MAKE_RUST_TARGET_OS}", default_value = "linux", mapping = { macos = "gtar", linux = "tar" } }

[env.x86_64-tpm-debian-gnu]
CROSS_TARGET = "x86_64-unknown-linux-gnu"
Expand Down
2 changes: 1 addition & 1 deletion lorawan/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ byteorder = {workspace = true}
bitfield = "0.13"

[dev-dependencies]
base64 = "0"
base64 = ">=0.21"
6 changes: 4 additions & 2 deletions lorawan/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ use std::{convert::From, fmt, io, mem::size_of, result};

pub mod error;
pub use error::LoraWanError;
pub mod subnet;

#[derive(Debug, Clone, Copy, PartialEq, Eq)]
pub enum Direction {
Expand Down Expand Up @@ -524,7 +523,10 @@ mod test {

#[test]
fn test_read_write_roundtrip() {
let data_a = base64::decode("IL1ciMu7b3ZOP5Q1cBA7isI=").unwrap();
use base64::Engine;
let data_a = base64::engine::general_purpose::STANDARD
.decode("IL1ciMu7b3ZOP5Q1cBA7isI=")
.unwrap();
let payload_a = PHYPayload::read(Direction::Uplink, &mut &data_a[..]).unwrap();
let mut data_b = Vec::with_capacity(data_a.len());
payload_a.write(&mut data_b).unwrap();
Expand Down
345 changes: 0 additions & 345 deletions lorawan/src/subnet.rs

This file was deleted.

0 comments on commit 7bbb716

Please sign in to comment.