call-board-configuration pull request (fix2)

This commit is contained in:
Andrei 2017-04-22 01:46:25 +03:00
parent 02c36759f5
commit 119159b749
3 changed files with 4 additions and 4 deletions

View File

@ -129,8 +129,8 @@ void boardInit(void) {
} }
/** /**
* @brief Board-specific configuration code. * @brief Board-specific configuration code overrides.
* @todo Add your board-specific code, if any. * @todo Add your board-specific code, if any.
*/ */
void setBoardConfiguration(void) { void setBoardConfigurationOverrides(void) {
} }

View File

@ -1342,7 +1342,7 @@
extern "C" { extern "C" {
#endif #endif
void boardInit(void); void boardInit(void);
void setBoardConfiguration(void); void setBoardConfigurationOverrides(void);
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif

View File

@ -870,7 +870,7 @@ void setDefaultConfiguration(DECLARE_ENGINE_PARAMETER_F) {
engineConfiguration->tpsAccelEnrichmentThreshold = 40; // TPS % change, per engine cycle engineConfiguration->tpsAccelEnrichmentThreshold = 40; // TPS % change, per engine cycle
// call overrided board-specific configuration setup, if needed (for custom boards only) // call overrided board-specific configuration setup, if needed (for custom boards only)
setBoardConfiguration(); setBoardConfigurationOverrides();
} }
void resetConfigurationExt(Logging * logger, engine_type_e engineType DECLARE_ENGINE_PARAMETER_S) { void resetConfigurationExt(Logging * logger, engine_type_e engineType DECLARE_ENGINE_PARAMETER_S) {