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:
parent
59a5846146
commit
41b5a01958
7 changed files with 40 additions and 20 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue