mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-31 12:41:20 -06:00 
			
		
		
		
	FIX: display failed when the flow rate is 0 or too large
Change-Id: I20af5b0badba63a12129fb571524a152b591d974 (cherry picked from commit f57ce4133c6a5a460c43767c898c3068d9bff60d)
This commit is contained in:
		
							parent
							
								
									2bb6dc65b8
								
							
						
					
					
						commit
						a672870222
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		|  | @ -7,6 +7,8 @@ | |||
| namespace Slic3r { namespace GUI { | ||||
| 
 | ||||
| #define CALIBRATION_SAVE_INPUT_SIZE     wxSize(FromDIP(240), FromDIP(24)) | ||||
| #define FLOW_RATE_MAX_VALUE  1.15 | ||||
| 
 | ||||
| static wxString get_default_name(wxString filament_name, CalibMode mode){ | ||||
|     PresetBundle* preset_bundle = wxGetApp().preset_bundle; | ||||
|     for (auto it = preset_bundle->filaments.begin(); it != preset_bundle->filaments.end(); it++) { | ||||
|  | @ -953,7 +955,7 @@ void CalibrationFlowX1SavePage::sync_cali_result(const std::vector<FlowRatioCali | |||
|         part_failed = true; | ||||
|     for (auto& item : cali_result) { | ||||
|         bool result_failed = false; | ||||
|         if (item.confidence != 0) { | ||||
|         if (item.confidence != 0 || item.flow_ratio < 1e-3 || item.flow_ratio > FLOW_RATE_MAX_VALUE) { | ||||
|             result_failed = true; | ||||
|             part_failed = true; | ||||
|         } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 zhimin.zeng
						zhimin.zeng