Skip to content

Commit 9af1884

Browse files
committed
customBoardTsAction
1 parent 7091ea6 commit 9af1884

4 files changed

Lines changed: 13 additions & 5 deletions

File tree

board.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ DDEFS += -DKNOCK_SPECTROGRAM=TRUE
2020
# DDEFS += -DLED_CRITICAL_ERROR_BRAIN_PIN=Gpio::I15
2121

2222
# we do not have much Lua RAM, let's drop some fancy functions
23-
DDEFS += -DWITH_LUA_CONSUMPTION=FALSE
24-
DDEFS += -DWITH_LUA_PID=FALSE
25-
DDEFS += -DWITH_LUA_STOP_ENGINE=FALSE
23+
# DDEFS += -DWITH_LUA_CONSUMPTION=FALSE
24+
# DDEFS += -DWITH_LUA_PID=FALSE
25+
# DDEFS += -DWITH_LUA_STOP_ENGINE=FALSE

board_configuration.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,8 @@ static void customBoardDefaultConfiguration() {
5959

6060
void setup_custom_board_overrides() {
6161
custom_board_DefaultConfiguration = customBoardDefaultConfiguration;
62+
63+
void customBoardTsAction(uint16_t subSystem, uint16_t index);
64+
custom_board_ts_command = customBoardTsAction;
6265
}
66+

ext/rusefi

Submodule rusefi updated 818 files

firmware/pinouts.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,11 @@ static void setBoard_mini_pinout() {
135135

136136

137137

138-
/*PUBLIC_API_WEAK*/ void boardTsAction(uint16_t index) {
138+
void customBoardTsAction(uint16_t subSystem, uint16_t index) {
139+
if (subSystem != (uint16_t)TS_BOARD_ACTION) {
140+
return;
141+
}
142+
139143
if (index == 0) {
140144
setBoard_04_pinout();
141145
} else if (index == 1) {

0 commit comments

Comments
 (0)