Skip to content

Commit

Permalink
Reset network id when powering off terminal
Browse files Browse the repository at this point in the history
  • Loading branch information
cesarBLG committed Jan 14, 2024
1 parent 10b81ad commit 26914e2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion EVC/Euroradio/terminal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,10 @@ void mobile_terminal::update()
if (registered && last_register_order)
last_register_order = {};

if (!powered)
if (!powered) {
registered = false;
network_id = -1;
}

csd_available = mobile_data_available = registered;

Expand Down

0 comments on commit 26914e2

Please sign in to comment.