proj
This commit is contained in:
		
							parent
							
								
									6a914a6eaa
								
							
						
					
					
						commit
						8c9b2bc012
					
				
					 1 changed files with 8 additions and 2 deletions
				
			
		|  | @ -425,6 +425,12 @@ int main(void) { | ||||||
|                     result_displayed = 0; |                     result_displayed = 0; | ||||||
|                     display_status(); |                     display_status(); | ||||||
|                 } |                 } | ||||||
|  | 
 | ||||||
|  |                 // Reset debounce after operator is processed
 | ||||||
|  |                 stable = 0; | ||||||
|  |                 last_key = 0xFF; | ||||||
|  |                 delay(500000);  // Delay to let user release the key
 | ||||||
|  | 
 | ||||||
|             } else { |             } else { | ||||||
|                 // DIGIT INPUT MODE
 |                 // DIGIT INPUT MODE
 | ||||||
|                 if(is_valid_digit(key)) { |                 if(is_valid_digit(key)) { | ||||||
|  | @ -435,10 +441,10 @@ int main(void) { | ||||||
|                     if(input_num < -32768) |                     if(input_num < -32768) | ||||||
|                         input_num = -32768; |                         input_num = -32768; | ||||||
|                     display_status(); |                     display_status(); | ||||||
|  | 
 | ||||||
|  |                     stable = 5;  // Prevent repeated triggers
 | ||||||
|                 } |                 } | ||||||
|             } |             } | ||||||
| 
 |  | ||||||
|             stable = 5;  // Prevent repeated triggers
 |  | ||||||
|         } |         } | ||||||
| 
 | 
 | ||||||
|         // ===== STATE MACHINE DISPLAY ON 7-SEGMENT =====
 |         // ===== STATE MACHINE DISPLAY ON 7-SEGMENT =====
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue