Skip to content

Commit

Permalink
return global variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Sa1dzhan committed Sep 21, 2024
1 parent d45733d commit f5396b6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions chirpstack/src/devaddr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,8 @@ fn generate_dev_addr() -> DevAddr {

// Old implementation
// project/chirpstack/src/devaddr.rs
const NUMBER_OF_SLOTS: u32 = 64;
static mut CURRENT_SLOT: u32 = 0;
pub fn get_random_dev_addr() -> DevAddr {
// check whether we still have any time slots left
unsafe {
Expand Down

0 comments on commit f5396b6

Please sign in to comment.