Browse Source

DataFlash: add temporary workaround for macro usage

Make DataFlash correctly save the git version. We should think about a
better solution, like it was done on GCSMavlink, but this is the minimal
change to make it possible to move includes of version.h to their
respective users.
mission-4.1.18
Lucas De Marchi 7 years ago
parent
commit
9e7bda83bf
  1. 4
      libraries/DataFlash/DFMessageWriter.cpp

4
libraries/DataFlash/DFMessageWriter.cpp

@ -1,6 +1,10 @@ @@ -1,6 +1,10 @@
#include "AP_Common/AP_FWVersion.h"
#include "DFMessageWriter.h"
#define FORCE_VERSION_H_INCLUDE
#include "ap_version.h"
#undef FORCE_VERSION_H_INCLUDE
extern const AP_HAL::HAL& hal;
/* LogStartup - these are simple state machines which allow us to

Loading…
Cancel
Save