heater.c, sd.c: apply the changed order of SET_OUTPUT() here, too.

Now it's changed everywhere.
This commit is contained in:
Markus Hitter 2015-07-31 00:58:52 +02:00
parent 4faa3cbf8f
commit e434423dd9
2 changed files with 2 additions and 2 deletions

View File

@ -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
View File

@ -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.