Skip to content

Commit cc6d5ed

Browse files
committed
Add MAPSEL0 input to the indicators panel
1 parent 892e3f2 commit cc6d5ed

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

sources/ecudata.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ typedef struct sensors_t
135135
uint8_t auto_i;
136136
uint8_t ign_i;
137137
uint8_t cond_i;
138+
uint8_t mapsel0;
138139

139140
//raw values of sensors (ADC discretes with compensated errors)
140141
int16_t map_raw; //!< raw ADC value from MAP sensor

sources/measure.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ void meas_init_ports(void)
107107
IOCFG_INIT(IOP_INPUT1, 0); //don't use internal pullup resistor
108108
IOCFG_INIT(IOP_INPUT2, 0); //don't use internal pullup resistor
109109
IOCFG_INIT(IOP_AUTO_I, 0); //don't use internal pullup resistor
110+
IOCFG_INIT(IOP_MAPSEL0, 0); //don't use internal pullup resistor
110111
#ifndef SECU3T //SECU-3i
111112
IOCFG_INIT(IOP_EPAS_I, 0); //don't use internal pullup resistor
112113
IOCFG_INIT(IOP_GPA4_I, 0); //don't use internal pullup resistor
@@ -592,4 +593,5 @@ void meas_take_discrete_inputs(void)
592593
d.sens.cond_i = IOCFG_GET(IOP_COND_I);
593594
d.sens.input1 = IOCFG_GET(IOP_INPUT1);
594595
d.sens.input2 = IOCFG_GET(IOP_INPUT2);
596+
d.sens.mapsel0 = mapsel0;
595597
}

sources/uart.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -835,6 +835,7 @@ void uart_send_packet(uint8_t send_mode)
835835
| _CBV8(d.sens.input1, 2) // INPUT1
836836
| _CBV8(d.sens.input2, 3) // INPUT2
837837
| _CBV8(d.sens.auto_i, 4) // AUTO_I
838+
| _CBV8(d.sens.mapsel0,5) // MAPSEL0
838839
); //additional flags
839840
break;
840841

0 commit comments

Comments
 (0)