Browse Source

Trailing whitespace clean

pull/1/head
Scott Lahteine 7 years ago
parent
commit
1c41de16d4
  1. 1
      Marlin/src/HAL/HAL_AVR/HAL_spi_AVR.cpp
  2. 1
      Marlin/src/HAL/HAL_DUE/HAL_spi_Due.cpp
  3. 2
      Marlin/src/HAL/HAL_LPC1768/arduino.cpp
  4. 3
      Marlin/src/HAL/HAL_TEENSY35_36/HAL_spi_Teensy.cpp

1
Marlin/src/HAL/HAL_AVR/HAL_spi_AVR.cpp

@ -95,7 +95,6 @@ void spiBegin (void) {
SPSR = spiRate & 1 || spiRate == 6 ? 0 : _BV(SPI2X);
}
//------------------------------------------------------------------------------
/** SPI receive a byte */
uint8_t spiRec(void) {

1
Marlin/src/HAL/HAL_DUE/HAL_spi_Due.cpp

@ -777,7 +777,6 @@
/** Begin SPI transaction, set clock, bit order, data mode */
void spiBeginTransaction(uint32_t spiClock, uint8_t bitOrder, uint8_t dataMode) {
// TODO: to be implemented
}
#endif // ENABLED(SOFTWARE_SPI)

2
Marlin/src/HAL/HAL_LPC1768/arduino.cpp

@ -136,7 +136,7 @@ void analogWrite(pin_t pin, int pwm_value) { // 1 - 254: pwm_value, 0: LOW, 255
digitalWrite(pin, value);
}
else {
if (LPC1768_PWM_attach_pin(pin, 1, LPC_PWM1->MR0, 0xff))
if (LPC1768_PWM_attach_pin(pin, 1, LPC_PWM1->MR0, 0xFF))
LPC1768_PWM_write(pin, map(value, 0, 255, 1, LPC_PWM1->MR0)); // map 1-254 onto PWM range
else { // out of PWM channels
if (!out_of_PWM_slots) MYSERIAL.printf(".\nWARNING - OUT OF PWM CHANNELS\n.\n"); //only warn once

3
Marlin/src/HAL/HAL_TEENSY35_36/HAL_spi_Teensy.cpp

@ -108,5 +108,4 @@ void spiBeginTransaction(uint32_t spiClock, uint8_t bitOrder, uint8_t dataMode)
SPI.beginTransaction(spiConfig);
}
#endif
#endif // __MK64FX512__ || __MK66FX1M0__

Loading…
Cancel
Save