File tree Expand file tree Collapse file tree 3 files changed +4
-0
lines changed Expand file tree Collapse file tree 3 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -135,6 +135,7 @@ typedef struct sensors_t
135
135
uint8_t auto_i ;
136
136
uint8_t ign_i ;
137
137
uint8_t cond_i ;
138
+ uint8_t mapsel0 ;
138
139
139
140
//raw values of sensors (ADC discretes with compensated errors)
140
141
int16_t map_raw ; //!< raw ADC value from MAP sensor
Original file line number Diff line number Diff line change @@ -107,6 +107,7 @@ void meas_init_ports(void)
107
107
IOCFG_INIT (IOP_INPUT1 , 0 ); //don't use internal pullup resistor
108
108
IOCFG_INIT (IOP_INPUT2 , 0 ); //don't use internal pullup resistor
109
109
IOCFG_INIT (IOP_AUTO_I , 0 ); //don't use internal pullup resistor
110
+ IOCFG_INIT (IOP_MAPSEL0 , 0 ); //don't use internal pullup resistor
110
111
#ifndef SECU3T //SECU-3i
111
112
IOCFG_INIT (IOP_EPAS_I , 0 ); //don't use internal pullup resistor
112
113
IOCFG_INIT (IOP_GPA4_I , 0 ); //don't use internal pullup resistor
@@ -592,4 +593,5 @@ void meas_take_discrete_inputs(void)
592
593
d .sens .cond_i = IOCFG_GET (IOP_COND_I );
593
594
d .sens .input1 = IOCFG_GET (IOP_INPUT1 );
594
595
d .sens .input2 = IOCFG_GET (IOP_INPUT2 );
596
+ d .sens .mapsel0 = mapsel0 ;
595
597
}
Original file line number Diff line number Diff line change @@ -835,6 +835,7 @@ void uart_send_packet(uint8_t send_mode)
835
835
| _CBV8 (d .sens .input1 , 2 ) // INPUT1
836
836
| _CBV8 (d .sens .input2 , 3 ) // INPUT2
837
837
| _CBV8 (d .sens .auto_i , 4 ) // AUTO_I
838
+ | _CBV8 (d .sens .mapsel0 ,5 ) // MAPSEL0
838
839
); //additional flags
839
840
break ;
840
841
You can’t perform that action at this time.
0 commit comments