Skip to content

Pico uses always UniqueID#330

Merged
DocMoebiuz merged 4 commits intoMobiFlight:mainfrom
elral:no_SN_generation_for_pico
Sep 4, 2024
Merged

Pico uses always UniqueID#330
DocMoebiuz merged 4 commits intoMobiFlight:mainfrom
elral:no_SN_generation_for_pico

Conversation

@elral
Copy link
Collaborator

@elral elral commented Aug 8, 2024

Description of changes

When introducing the UniqueID for the Pico the function to generate a new serial number, in this case according the AVR style, was kept. There is no reason to have this function as the UniqueID is always different between each Pico.
This is different to the AVR boards. They do not have a UniqueID and therefore a SN gets generated on first start up. Seldom the same SN can get generated like an already existing board. In this case the function to regenerate a SN is required.

The function to regenerate a SN for the Pico is deleted. But it is still checked if it was used before and a SN according the old style is used. In this case this SN will still be used to not get orphaned boards. If the user regenerates again a new SN, the UniqueID will be used and it gets markes in the EEPROM accordingly.
Furthermore setting the first byte of the config to 0x00 for new boards is deleted. This was discussed before but not implemented. It's deleted to be sure that a config get's never deleted from the FW itself.

@elral elral requested a review from DocMoebiuz as a code owner August 8, 2024 06:05
@github-actions
Copy link

github-actions bot commented Aug 8, 2024

Board and firmware folder for this pull request:
Mobiflight-Connector.zip

@github-actions
Copy link

github-actions bot commented Aug 8, 2024

Board and firmware folder for this pull request:
Mobiflight-Connector.zip

@github-actions
Copy link

Board and firmware folder for this pull request:
Mobiflight-Connector.zip

@github-actions
Copy link

Board and firmware folder for this pull request:
Mobiflight-Connector.zip

@DocMoebiuz DocMoebiuz merged commit ddc92cf into MobiFlight:main Sep 4, 2024
@elral elral deleted the no_SN_generation_for_pico branch September 5, 2024 05:59
@DocMoebiuz DocMoebiuz added the enhancement New feature or request label Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants