-
Notifications
You must be signed in to change notification settings - Fork 17.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
AP_DroneCAN: DNAServer: avoid resetting when server node ID changes
Avoids confusing the user and removes weirdness with multiple servers sharing the same storage. Does leak the registration for the old ID but in the unlikely event the table fills up the user can simply reset the database. We keep the check for an existing registration to avoid dirtying the storage every boot unnecessarily. We also factor out the deletion of an existing registration (which is very unlikely but technically possible) to save some flash.
- Loading branch information
Showing
2 changed files
with
22 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters