insist on setBoardConfigOverrides fix #4614 (#4615)

* insist on setBoardConfigOverrides fix #4614

* insist on setBoardConfigOverrides fix #4614

* insist on setBoardConfigOverrides fix #4614

* insist on setBoardConfigOverrides fix #4614

* insist on setBoardConfigOverrides fix #4614
This commit is contained in:
rusefillc 2022-09-24 07:35:19 -04:00 committed by GitHub
parent 3690b79b18
commit 35bf947f06
4 changed files with 12 additions and 1 deletions

View File

@ -17,7 +17,7 @@ Release template (copy/paste this for new release):
-
### Fixed
-
- Enforce board configuration overrides more strictly #4614
-->

View File

@ -190,6 +190,8 @@ void TunerStudio::handleWriteChunkCommand(TsChannelBase* tsChannel, ts_response_
uint8_t * addr = (uint8_t *) (getWorkingPageAddr() + offset);
memcpy(addr, content, count);
}
// Force any board configuration options that humans shouldn't be able to change
setBoardConfigOverrides();
sendOkResponse(tsChannel, mode);
}
@ -240,6 +242,8 @@ void TunerStudio::handleWriteValueCommand(TsChannelBase* tsChannel, ts_response_
if (!rebootForPresetPending) {
getWorkingPageAddr()[offset] = value;
}
// Force any board configuration options that humans shouldn't be able to change
setBoardConfigOverrides();
}
void TunerStudio::handlePageReadCommand(TsChannelBase* tsChannel, ts_response_format_e mode, uint16_t offset, uint16_t count) {

View File

@ -181,3 +181,6 @@ CANDriver* detectCanDevice(brain_pin_e pinRx, brain_pin_e pinTx) {
return &CAND1;
}
#endif // HAL_USE_CAN
void setBoardConfigOverrides() {
}

View File

@ -25,3 +25,7 @@ efitick_t getTimeNowNt() {
void initLogging(LoggingWithStorage *logging, const char *name) {
}
void setBoardConfigOverrides() {
}