mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-15 12:25:20 +03:00
Fix MAX7456 clock configuration (#13030)
This commit is contained in:
parent
632a13b821
commit
958f49c35f
1 changed files with 2 additions and 2 deletions
|
@ -31,7 +31,7 @@
|
|||
#include "max7456.h"
|
||||
|
||||
#ifndef MAX7456_CLOCK_CONFIG_DEFAULT
|
||||
#define MAX7456_CLOCK_CONFIG_DEFAULT MAX7456_CLOCK_CONFIG_OC
|
||||
#define MAX7456_CLOCK_CONFIG_DEFAULT MAX7456_CLOCK_CONFIG_NOMINAL
|
||||
#endif
|
||||
|
||||
#ifndef MAX7456_SPI_CS_PIN
|
||||
|
@ -46,7 +46,7 @@ PG_REGISTER_WITH_RESET_FN(max7456Config_t, max7456Config, PG_MAX7456_CONFIG, 0);
|
|||
|
||||
void pgResetFn_max7456Config(max7456Config_t *config)
|
||||
{
|
||||
config->clockConfig = MAX7456_CLOCK_CONFIG_NOMINAL;
|
||||
config->clockConfig = MAX7456_CLOCK_CONFIG_DEFAULT;
|
||||
config->csTag = IO_TAG(MAX7456_SPI_CS_PIN);
|
||||
config->spiDevice = SPI_DEV_TO_CFG(spiDeviceByInstance(MAX7456_SPI_INSTANCE));
|
||||
config->preInitOPU = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue