Added some safeguards to avoid issues related to data struct sizes

This commit is contained in:
Raphael Coeffic
2021-11-10 11:07:02 +01:00
parent c9b20063ec
commit baba1c5e9d
4 changed files with 28 additions and 20 deletions
@@ -19,8 +19,9 @@
* GNU General Public License for more details.
*/
#ifndef _DATACONSTANTS_H_
#define _DATACONSTANTS_H_
#if defined(_DATACONSTANTS_H_)
#error "This file MUST NOT be included side-by-side with dataconstants.h"
#endif
#include <storage/yaml/yaml_defs.h>
#include <hal.h>
@@ -1046,5 +1047,3 @@ enum CalibrationState {
CALIB_STORE,
CALIB_FINISHED
};
#endif // _DATACONSTANTS_H_