don't set up SPI pins unless we're using them for a max6675
This commit is contained in:
parent
12516be978
commit
c6a9f24e24
2
mendel.c
2
mendel.c
|
|
@ -151,11 +151,13 @@ void io_init(void) {
|
|||
power_off();
|
||||
#endif
|
||||
|
||||
#ifdef TEMP_MAX6675
|
||||
// setup SPI
|
||||
WRITE(SCK, 0); SET_OUTPUT(SCK);
|
||||
WRITE(MOSI, 1); SET_OUTPUT(MOSI);
|
||||
WRITE(MISO, 1); SET_INPUT(MISO);
|
||||
WRITE(SS, 1); SET_OUTPUT(SS);
|
||||
#endif
|
||||
|
||||
#ifdef TEMP_INTERCOM
|
||||
// Enable the RS485 transceiver
|
||||
|
|
|
|||
Loading…
Reference in New Issue