Move Intercom temp sensor initialisation from mendel.c to temp.c.
This commit is contained in:
parent
a9f1d00865
commit
f6115688c5
8
mendel.c
8
mendel.c
|
|
@ -186,14 +186,6 @@ void io_init(void) {
|
|||
WRITE(MISO, 1); SET_INPUT(MISO);
|
||||
#endif
|
||||
|
||||
#ifdef TEMP_INTERCOM
|
||||
// Enable the RS485 transceiver
|
||||
SET_OUTPUT(RX_ENABLE_PIN);
|
||||
SET_OUTPUT(TX_ENABLE_PIN);
|
||||
WRITE(RX_ENABLE_PIN,0);
|
||||
disable_transmit();
|
||||
#endif
|
||||
|
||||
#ifdef DEBUG_LED_PIN
|
||||
WRITE(DEBUG_LED_PIN, 0);
|
||||
SET_OUTPUT(DEBUG_LED_PIN);
|
||||
|
|
|
|||
8
temp.c
8
temp.c
|
|
@ -99,9 +99,15 @@ void temp_init() {
|
|||
|
||||
#ifdef TEMP_INTERCOM
|
||||
case TT_INTERCOM:
|
||||
// Enable the RS485 transceiver
|
||||
SET_OUTPUT(RX_ENABLE_PIN);
|
||||
SET_OUTPUT(TX_ENABLE_PIN);
|
||||
WRITE(RX_ENABLE_PIN,0);
|
||||
disable_transmit();
|
||||
|
||||
intercom_init();
|
||||
send_temperature(0, 0);
|
||||
break;
|
||||
// Intentionally no break.
|
||||
#endif
|
||||
|
||||
default: /* prevent compiler warning */
|
||||
|
|
|
|||
Loading…
Reference in New Issue