Feedback

Get firmware version

Description

Get the firmware version or the bootloader version depending on what mode we are in. This command also returns the status bits, where the least significan bit teels us if we are currently in the bootloader (=1) or the main firmware (=0)

Inputs

None

Outputs

  1. array4 firmwareVersion: The firmware version stored as 4 bytes. The first byte is the development number, then patch version, followed by the minor and major versions.

  2. u8 inBootloader: : A flag that tells us if we are in the bootloader (=1) or in the regular firmware (=0)

Code examples

Log window

Choose a theme
Choose a theme