Cosmetics

This commit is contained in:
Bertrand Songis
2019-08-24 15:58:50 +02:00
parent ecf5a64424
commit 42ec5afd06
8 changed files with 74 additions and 72 deletions
+2 -11
View File
@@ -624,12 +624,9 @@ void checkAll();
void getADC();
static inline void GET_ADC_IF_MIXER_NOT_RUNNING()
{
do {
if (s_pulses_paused) {
getADC();
}
if (s_pulses_paused) {
getADC();
}
while(0);
}
#include "sbus.h"
@@ -640,12 +637,6 @@ void doLoopCommonActions();
#define BITMASK(bit) (1<<(bit))
template<class t> inline t min(t a, t b) { return a<b?a:b; }
template<class t> inline t max(t a, t b) { return a>b?a:b; }
template<class t> inline t sgn(t a) { return a>0 ? 1 : (a < 0 ? -1 : 0); }
template<class t> inline t limit(t mi, t x, t ma) { return min(max(mi,x),ma); }
template<class t> inline void SWAP(t & a, t & b) { t tmp = b; b = a; a = tmp; }
uint16_t isqrt32(uint32_t n);
#if defined(BOOT)