mirror of https://github.com/ArduPilot/ardupilot
ArduCopter: print firmware version of code instead of zero.
This commit is contained in:
parent
9e66b555cb
commit
b6d2d4723f
|
@ -1243,7 +1243,7 @@ static void report_gps()
|
||||||
|
|
||||||
static void report_version()
|
static void report_version()
|
||||||
{
|
{
|
||||||
Serial.printf_P(PSTR("FW Ver: %d\n"),(int)g.format_version.get());
|
Serial.printf_P(PSTR("FW Ver: %d\n"),(int)g.k_format_version);
|
||||||
print_divider();
|
print_divider();
|
||||||
print_blanks(2);
|
print_blanks(2);
|
||||||
}
|
}
|
||||||
|
|
|
@ -109,7 +109,7 @@ static void init_ardupilot()
|
||||||
isr_registry.init();
|
isr_registry.init();
|
||||||
|
|
||||||
//
|
//
|
||||||
// Check the EEPROM format version before loading any parameters from EEPROM.
|
// Report firmware version code expect on console (check of actual EEPROM format version is done in load_parameters function)
|
||||||
//
|
//
|
||||||
report_version();
|
report_version();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue