fix digital pin and not commited changes in esp os node v3
This commit is contained in:
		@@ -73,14 +73,14 @@ class Home extends Template
 | 
			
		||||
							break;
 | 
			
		||||
 | 
			
		||||
							case 'light':
 | 
			
		||||
							$replacementTrue = 'Light';
 | 
			
		||||
							$replacementFalse = 'Dark';
 | 
			
		||||
							$operator = '==';
 | 
			
		||||
							$breakValue = 1;
 | 
			
		||||
							if ($lastValue != 1 || $lastValue != 0) { //Digital Light Senzor
 | 
			
		||||
								$operator = '<';
 | 
			
		||||
								$breakValue = 810;
 | 
			
		||||
							}
 | 
			
		||||
								$replacementTrue = 'Light';
 | 
			
		||||
								$replacementFalse = 'Dark';
 | 
			
		||||
								$operator = '==';
 | 
			
		||||
								$breakValue = 1;
 | 
			
		||||
								if ($lastValue != 1 && $lastValue != 0) { //Digital Light Senzor
 | 
			
		||||
									$operator = '<';
 | 
			
		||||
									$breakValue = 810;
 | 
			
		||||
								}
 | 
			
		||||
							break;
 | 
			
		||||
 | 
			
		||||
							case 'water':
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user