Status is printed only in one line
This commit is contained in:
		
							
								
								
									
										11
									
								
								src/main.cpp
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								src/main.cpp
									
									
									
									
									
								
							@@ -83,9 +83,8 @@ float readTemperature(void)
 | 
				
			|||||||
 */
 | 
					 */
 | 
				
			||||||
void loop() {
 | 
					void loop() {
 | 
				
			||||||
  float temp = readTemperature();  
 | 
					  float temp = readTemperature();  
 | 
				
			||||||
  Serial.print("Temperature is ");
 | 
					 | 
				
			||||||
  Serial.print(temp);
 | 
					  Serial.print(temp);
 | 
				
			||||||
  Serial.println(" deg C");
 | 
					  Serial.print(";");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  int fanSpeedPercent, actualFanSpeedRpm;
 | 
					  int fanSpeedPercent, actualFanSpeedRpm;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -97,16 +96,12 @@ void loop() {
 | 
				
			|||||||
    fanSpeedPercent = (100 - MIN_FAN_SPEED_PERCENT) * (temp - MIN_TEMP) / (MAX_TEMP - MIN_TEMP) + MIN_FAN_SPEED_PERCENT;
 | 
					    fanSpeedPercent = (100 - MIN_FAN_SPEED_PERCENT) * (temp - MIN_TEMP) / (MAX_TEMP - MIN_TEMP) + MIN_FAN_SPEED_PERCENT;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  Serial.print("Setting fan speed to ");
 | 
					 | 
				
			||||||
  Serial.print(fanSpeedPercent);
 | 
					  Serial.print(fanSpeedPercent);
 | 
				
			||||||
  Serial.println(" %");
 | 
					  Serial.print("%;");
 | 
				
			||||||
  setFanSpeedPercent(fanSpeedPercent);
 | 
					  setFanSpeedPercent(fanSpeedPercent);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  actualFanSpeedRpm = getFanSpeedRpm();
 | 
					  actualFanSpeedRpm = getFanSpeedRpm();
 | 
				
			||||||
  Serial.print("Fan speed is ");
 | 
					 | 
				
			||||||
  Serial.print(actualFanSpeedRpm);
 | 
					  Serial.print(actualFanSpeedRpm);
 | 
				
			||||||
  Serial.println(" RPM");
 | 
					  Serial.println("RPM");
 | 
				
			||||||
 | 
					 | 
				
			||||||
  Serial.println();
 | 
					 | 
				
			||||||
  delay(DELAY_TIME);
 | 
					  delay(DELAY_TIME);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user