Commit a4d1906
committed
Fix invalid PEP 440 version string from nRF51 bootloader dirty bit
When the nRF51 bootloader reports a dirty build (bit 0x80 set in the
version data), cflib constructed a version string ending in bare "+",
e.g. "2024.1.0+". This is invalid PEP 440 and causes
packaging.version.Version() to raise an error during flashing.
This likely started failing when the packaging library tightened its
PEP 440 validation in a newer release.
Reproducible with any Crazyflie running custom-built nRF51 firmware
(which sets the dirty bit). Fix changes the suffix from "+" to "+dirty"
which is valid PEP 440.
Tested by flashing a Crazyflie with dirty nRF51 bootloader firmware.1 parent e780010 commit a4d1906
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
207 | | - | |
| 207 | + | |
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
| |||
0 commit comments