mirror of https://github.com/rusefi/rusefi.git
Community insists on configurable comms LED fix #6146
This commit is contained in:
parent
641e60f219
commit
161823ccb5
|
@ -24,7 +24,7 @@ Gpio getWarningLedPin() {
|
|||
}
|
||||
|
||||
Gpio getCommsLedPin() {
|
||||
return Gpio::D15; // blue LED on discovery
|
||||
return engineConfiguration->communityCommsLedPid;
|
||||
}
|
||||
|
||||
Gpio getRunningLedPin() {
|
||||
|
@ -86,6 +86,8 @@ void setBoardDefaultConfiguration() {
|
|||
setDefaultFrankensoStepperIdleParameters();
|
||||
setCanFrankensoDefaults();
|
||||
|
||||
engineConfiguration->communityCommsLedPid = Gpio::D15; // blue LED on discovery
|
||||
|
||||
#if EFI_HIP_9011
|
||||
setHip9011FrankensoPinout();
|
||||
#endif /* EFI_HIP_9011 */
|
||||
|
|
|
@ -10,6 +10,8 @@
|
|||
#define ts_show_vr_threshold_all true
|
||||
#define ts_show_vr_threshold_2 true
|
||||
|
||||
#define ts_show_communityCommsLedPid true
|
||||
|
||||
#define ts_show_onboard_accelerometer true
|
||||
! reduced MAX_CYLINDER_COUNT gives us a bit more flash and a bit more RAM
|
||||
! todo looks like this was pretty much ignored #define MAX_CYLINDER_COUNT 8
|
||||
|
|
|
@ -499,9 +499,12 @@ uint32_t cylindersCount;Number of cylinder the engine has.;"", 1, 0, 1, @@MAX_CY
|
|||
! FO_1_8_4_3_6_5_7_2 = 5
|
||||
! FO_1_2_4_5_3 = 6
|
||||
|
||||
#define ts_show_communityCommsLedPid false
|
||||
|
||||
custom firing_order_e 1 bits, U08, @OFFSET@, [0:6], "One Cylinder", "1-3-4-2", "1-2-4-3", "1-3-2-4", "1-5-3-6-2-4", "1-8-4-3-6-5-7-2", "1-2-4-5-3", "1-4-2-5-3-6", "1-2", "1-2-3-4-5-6", "1-2-3", "1-8-7-2-6-5-4-3", "1-5-4-2-6-3-7-8", "1-6-3-2-5-4", "1-10-9-4-3-6-5-8-7_2", "1-7-5-11-3-9-6-12-2-8-4-10", "1-7-4-10-2-8-6-12-3-9-5-11", "1-4-3-2", "1-12-5-8-3-10-6-7-2-11-4-9", "1-2-7-8-4-5-6-3", "1-3-7-2-6-5-4-8", "1-2-3-4-5-6-7-8-9", "INVALID", "1-2-3-4-5-6-7-8-9-10-11-12", "1-3-2", "1-2-3-4-5-6-7-8", "1-5-4-8-6-3-7-2", "1-4-3-6-2-5", "1-8-7-3-6-5-4-2", "1-6-2-4-3-5", "1-6-5-4-3-2", "1-4-5-2-3-6", "1-5-4-8-3-7-2-6", "fo33", "fo34", "fo35", "fo36", "fo37"
|
||||
firing_order_e firingOrder;
|
||||
! unused 3 bytes here
|
||||
! unused 1 bytes here
|
||||
Gpio communityCommsLedPid
|
||||
|
||||
float cylinderBore;Cylinder diameter in mm.;"mm", 1, 0, 0, 20000, 2
|
||||
|
||||
|
|
|
@ -3690,7 +3690,8 @@ cmd_set_engine_type_default = "@@TS_IO_TEST_COMMAND_char@@@@ts_command_e_TS_
|
|||
field = "Output", speedometerOutputPin
|
||||
field = "Pulse per km", speedometerPulsePerKm, { speedometerOutputPin }
|
||||
|
||||
dialog = outputsDialogLeft
|
||||
dialog = outputsDialogLeft
|
||||
field = communityCommsLedPid, communityCommsLedPid@@if_ts_show_communityCommsLedPid
|
||||
panel = mainRelayDialog
|
||||
panel = fuelPumpDialog
|
||||
panel = tachSettings
|
||||
|
|
Loading…
Reference in New Issue