Browse Source

Trailing whitespace clean

pull/1/head
Scott Lahteine 7 years ago
parent
commit
1c41de16d4
  1. 3
      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
  5. 2
      Marlin/src/module/configuration_store.cpp

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

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

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__

2
Marlin/src/module/configuration_store.cpp

@ -2079,7 +2079,7 @@ void MarlinSettings::reset() {
CONFIG_ECHO_START;
#if ENABLED(SKEW_CORRECTION_FOR_Z)
SERIAL_ECHO(" M852 I");
SERIAL_ECHO_F(LINEAR_UNIT(planner.xy_skew_factor),6);
SERIAL_ECHO_F(LINEAR_UNIT(planner.xy_skew_factor), 6);
SERIAL_ECHOPAIR(" J", LINEAR_UNIT(planner.xz_skew_factor));
SERIAL_ECHOLNPAIR(" K", LINEAR_UNIT(planner.yz_skew_factor));
#else

Loading…
Cancel
Save