always warn about deprecated/unused bat defines

This commit is contained in:
Felix Ruess
2011-11-24 14:03:51 +01:00
parent 9fb515fe32
commit c872bd87fc
2 changed files with 7 additions and 5 deletions
@@ -48,11 +48,6 @@
#include "link_mcu.h"
#endif
#ifdef MILLIAMP_PER_PERCENT
#error "deprecated MILLIAMP_PER_PERCENT --> Please use MILLIAMP_AT_FULL_THROTTLE"
#endif
uint8_t fbw_mode;
#include "inter_mcu.h"
+7
View File
@@ -6,6 +6,13 @@
#include "generated/airframe.h"
#include BOARD_CONFIG
#ifdef MILLIAMP_PER_PERCENT
#warning "deprecated MILLIAMP_PER_PERCENT --> Please use MILLIAMP_AT_FULL_THROTTLE"
#endif
#if defined BATTERY_SENS || defined BATTERY_OFFSET
#warning "BATTERY_SENS and BATTERY_OFFSET are deprecated, please remove them --> if you want to change the default use VoltageOfAdc"
#endif
struct Electrical electrical;
static struct {