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.
This commit is contained in:
Lucas De Marchi 2017-09-21 15:35:31 -07:00
parent ec935cf0fe
commit 9e7bda83bf
1 changed files with 4 additions and 0 deletions

View File

@ -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