mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-29 14:52:12 +01:00
Use the new PIOS assert
git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@315 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
057def91e2
commit
8e873ec0e8
@ -37,7 +37,7 @@
|
||||
|
||||
|
||||
/* Options */
|
||||
#define USE_DEBUG_PINS
|
||||
//#define USE_DEBUG_PINS
|
||||
|
||||
#ifdef PIOS_INCLUDE_FREERTOS
|
||||
#define USE_FREERTOS
|
||||
@ -107,8 +107,7 @@ static void TransferEnd(I2CRecTypeDef *i2cx);
|
||||
#define DebugPinLow(x)
|
||||
#endif
|
||||
|
||||
// FIXME: temp assert
|
||||
#define assert(exp) {if (!(exp)) while(1){DebugPinHigh(DEBUG_PIN_ASSERT);DebugPinLow(DEBUG_PIN_ASSERT);};};
|
||||
#define assert(exp) PIOS_DEBUG_Assert(exp)
|
||||
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user