Browse Source

Formatting tweaks as part of fixing issue 1497

Scott Lahteine 10 years ago
parent
commit
1d94d098bf
1 changed files with 4 additions and 6 deletions
  1. 4
    6
      Marlin/temperature.cpp

+ 4
- 6
Marlin/temperature.cpp View File

370
 
370
 
371
 #if HAS_AUTO_FAN
371
 #if HAS_AUTO_FAN
372
 
372
 
373
-void setExtruderAutoFanState(int pin, bool state)
374
-{
373
+void setExtruderAutoFanState(int pin, bool state) {
375
   unsigned char newFanSpeed = (state != 0) ? EXTRUDER_AUTO_FAN_SPEED : 0;
374
   unsigned char newFanSpeed = (state != 0) ? EXTRUDER_AUTO_FAN_SPEED : 0;
376
   // this idiom allows both digital and PWM fan outputs (see M42 handling).
375
   // this idiom allows both digital and PWM fan outputs (see M42 handling).
377
   digitalWrite(pin, newFanSpeed);
376
   digitalWrite(pin, newFanSpeed);
378
   analogWrite(pin, newFanSpeed);
377
   analogWrite(pin, newFanSpeed);
379
 }
378
 }
380
 
379
 
381
-void checkExtruderAutoFans()
382
-{
380
+void checkExtruderAutoFans() {
383
   uint8_t fanState = 0;
381
   uint8_t fanState = 0;
384
 
382
 
385
   // which fan pins need to be turned on?      
383
   // which fan pins need to be turned on?      
442
   #endif
440
   #endif
443
 }
441
 }
444
 
442
 
445
-#endif // any extruder auto fan pins set
443
+#endif // HAS_AUTO_FAN
446
 
444
 
447
 //
445
 //
448
 // Temperature Error Handlers
446
 // Temperature Error Handlers
916
   #if HAS_FILAMENT_SENSOR
914
   #if HAS_FILAMENT_SENSOR
917
     ANALOG_SELECT(FILWIDTH_PIN);
915
     ANALOG_SELECT(FILWIDTH_PIN);
918
   #endif
916
   #endif
919
-  
917
+
920
   #if HAS_AUTO_FAN_0
918
   #if HAS_AUTO_FAN_0
921
     pinMode(EXTRUDER_0_AUTO_FAN_PIN, OUTPUT);
919
     pinMode(EXTRUDER_0_AUTO_FAN_PIN, OUTPUT);
922
   #endif
920
   #endif

Loading…
Cancel
Save