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

Loading…
Cancel
Save