Skip to content

Commit

Permalink
Fix target device_id when other device is detected
Browse files Browse the repository at this point in the history
When the enforced/stored device_id is already used, use another one free.
  • Loading branch information
lars18th authored and Jalle19 committed Sep 10, 2024
1 parent e64ffa6 commit 226b311
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/minisatip.c
Original file line number Diff line number Diff line change
Expand Up @@ -2031,7 +2031,7 @@ int readBootID() {
uuid4_generate(opts.uuid);
}

if (opts.device_id < 1) {
if (opts.device_id < local_device_id) {
opts.device_id = local_device_id;
}

Expand Down

0 comments on commit 226b311

Please sign in to comment.