Misc general spacing cleanup

This commit is contained in:
Scott Lahteine 2017-10-06 15:13:43 -05:00
parent c0382cd8cd
commit 9fe7f53216
6 changed files with 10 additions and 10 deletions

View file

@ -496,7 +496,7 @@
} }
void MarlinSerial::writeNoHandshake(const uint8_t c) { void MarlinSerial::writeNoHandshake(const uint8_t c) {
while (!TEST(M_UCSRxA, M_UDREx)) ; while (!TEST(M_UCSRxA, M_UDREx)) { /* nada */ }
M_UDRx = c; M_UDRx = c;
} }

View file

@ -431,7 +431,7 @@ HAL_PWM_LPC1768_ISR {
ISR_table = active_table; // MR0 means new values could have been loaded so set everything ISR_table = active_table; // MR0 means new values could have been loaded so set everything
if (PWM_table_swap) LPC_PWM1->MCR = LPC1768_PWM_interrupt_mask; // enable new PWM individual channel interrupts if (PWM_table_swap) LPC_PWM1->MCR = LPC1768_PWM_interrupt_mask; // enable new PWM individual channel interrupts
for (uint8_t i = 0; (i < NUM_PWMS) ; i++) { for (uint8_t i = 0; i < NUM_PWMS; i++) {
if(ISR_table[i].active_flag && !((ISR_table[i].logical_pin == 11) || if(ISR_table[i].active_flag && !((ISR_table[i].logical_pin == 11) ||
(ISR_table[i].logical_pin == 4) || (ISR_table[i].logical_pin == 4) ||
(ISR_table[i].logical_pin == 6))) (ISR_table[i].logical_pin == 6)))

View file

@ -10,7 +10,7 @@ namespace PersistentStore {
bool access_start(); bool access_start();
bool access_finish(); bool access_finish();
bool write_data(int &pos, const uint8_t *value, uint16_t size, uint16_t *crc); bool write_data(int &pos, const uint8_t *value, uint16_t size, uint16_t *crc);
void read_data(int &pos, uint8_t* value, uint16_t size, uint16_t *crc) ; void read_data(int &pos, uint8_t* value, uint16_t size, uint16_t *crc);
} // PersistentStore } // PersistentStore
} // HAL } // HAL

View file

@ -73,7 +73,7 @@ void SYSTICK_InternalInit(uint32_t time)
* 1/SystemCoreClock * (2^24) * 1000 (ms) * 1/SystemCoreClock * (2^24) * 1000 (ms)
*/ */
//check time value is available or not //check time value is available or not
maxtime = (1<<24)/(SystemCoreClock / 1000) ; maxtime = (1<<24)/(SystemCoreClock / 1000);
if(time > maxtime) if(time > maxtime)
//Error loop //Error loop
while(1); while(1);
@ -105,7 +105,7 @@ void SYSTICK_ExternalInit(uint32_t freq, uint32_t time)
* 1/freq * (2^24) * 1000 (ms) * 1/freq * (2^24) * 1000 (ms)
*/ */
//check time value is available or not //check time value is available or not
maxtime = (1<<24)/(freq / 1000) ; maxtime = (1<<24)/(freq / 1000);
if (time>maxtime) if (time>maxtime)
//Error Loop //Error Loop
while(1); while(1);