heater.c, sd.c: apply the changed order of SET_OUTPUT() here, too.
Now it's changed everywhere.
This commit is contained in:
parent
4faa3cbf8f
commit
e434423dd9
2
heater.c
2
heater.c
|
|
@ -273,7 +273,7 @@ void heater_init() {
|
||||||
// set all heater pins to output
|
// set all heater pins to output
|
||||||
do {
|
do {
|
||||||
#undef DEFINE_HEATER
|
#undef DEFINE_HEATER
|
||||||
#define DEFINE_HEATER(name, pin, pwm) WRITE(pin, 0); SET_OUTPUT(pin);
|
#define DEFINE_HEATER(name, pin, pwm) SET_OUTPUT(pin); WRITE(pin, 0);
|
||||||
#include "config_wrapper.h"
|
#include "config_wrapper.h"
|
||||||
#undef DEFINE_HEATER
|
#undef DEFINE_HEATER
|
||||||
} while (0);
|
} while (0);
|
||||||
|
|
|
||||||
2
sd.c
2
sd.c
|
|
@ -19,8 +19,8 @@ static FRESULT result;
|
||||||
/** Initialize SPI for SD card reading.
|
/** Initialize SPI for SD card reading.
|
||||||
*/
|
*/
|
||||||
void sd_init(void) {
|
void sd_init(void) {
|
||||||
WRITE(SD_CARD_SELECT_PIN, 1);
|
|
||||||
SET_OUTPUT(SD_CARD_SELECT_PIN);
|
SET_OUTPUT(SD_CARD_SELECT_PIN);
|
||||||
|
WRITE(SD_CARD_SELECT_PIN, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Mount the SD card.
|
/** Mount the SD card.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue