1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-17 05:15:25 +03:00

Decouple board alignment code.

This commit is contained in:
Dominic Clifton 2014-04-17 19:28:38 +01:00
parent 59a5846146
commit 41b5a01958
7 changed files with 40 additions and 20 deletions

View file

@ -3,6 +3,8 @@
#include "rx.h"
#include "telemetry_common.h"
#include "boardalignment.h"
#include "config.h"
#include "build_config.h"
@ -37,7 +39,7 @@ int main(void)
}
adcInit(&adc_params);
initBoardAlignment();
initBoardAlignment(&mcfg.boardAlignment);
// We have these sensors; SENSORS_SET defined in board.h depending on hardware platform
sensorsSet(SENSORS_SET);