1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-26 01:35:41 +03:00

Fix unit tests - the tests cannot use a common library of production

since when compiling some test code the idea is to stub out production
functionality rather than call production code.
This commit is contained in:
Dominic Clifton 2015-09-10 01:50:04 +01:00
parent 4737f33b19
commit 0070573420
4 changed files with 11 additions and 6 deletions

View file

@ -139,6 +139,12 @@ extern "C" {
void failsafeOnValidDataFailed() {}
void failsafeOnValidDataReceived() {}
void failsafeOnRxSuspend(uint32_t ) {}
void failsafeOnRxResume(void) {}
uint32_t micros(void) { return 0; }
uint32_t millis(void) { return 0; }
bool feature(uint32_t mask) {
UNUSED(mask);
return false;
@ -159,6 +165,4 @@ extern "C" {
void rxMspInit(rxConfig_t *, rxRuntimeConfig_t *, rcReadRawDataPtr *) {}
void rxPwmInit(rxRuntimeConfig_t *, rcReadRawDataPtr *) {}
}