AP_Common: Add missing const in AP_FWVersion variables

Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
This commit is contained in:
Patrick José Pereira 2020-09-23 10:00:27 -03:00 committed by Peter Barker
parent 9c42c0f176
commit 1ee03a0d2e

View File

@ -7,10 +7,10 @@ class AP_FWVersion {
public:
uint8_t major;
uint8_t minor;
uint8_t patch;
FIRMWARE_VERSION_TYPE fw_type;
const uint8_t major;
const uint8_t minor;
const uint8_t patch;
const FIRMWARE_VERSION_TYPE fw_type;
const char *fw_string;
const char *fw_hash_str;
const char *middleware_name;