Skip to content

Write lighthouse config files as version '1' so cflib can read them - #37

Merged
evoggy merged 1 commit into
mainfrom
evoggy/lh-config-version
Oct 8, 2026
Merged

evoggy merged 1 commit into
mainfrom
evoggy/lh-config-version

Conversation

@evoggy

@evoggy evoggy commented Oct 8, 2026

Copy link
Copy Markdown
Member

Fixes #34.

lh config read saved files with version: '2', but cflib only reads version: '1', so cfclient refused them with "Unsupported file version". The format is the same, so cfcli now writes '1'. Files saved as '2' by earlier cfcli versions are still read by cfcli.

Tested by reading the configuration from a Crazyflie with cfcli lh config read -o and loading the file with cflib's LighthouseConfigFileManager.read(). It loads now, and the same file with version: '2' still fails there.

cflib only reads files with version '1', so cfclient refused the files
`lh config read` saved as version '2'. The format is the same, so files
written by earlier cfcli versions are still read.

Fixes #34
@evoggy
evoggy merged commit cb9a39c into main Oct 8, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Invalid version in saved lighthouse configs

1 participant