mirror of
				https://github.com/esphome/esphome.git
				synced 2025-11-04 09:01:49 +00:00 
			
		
		
		
	fixes deg symbol not shown (#1248)
This commit is contained in:
		
				
					committed by
					
						
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							a9d75ca4f4
						
					
				
				
					commit
					9a57e8fcb0
				
			@@ -232,7 +232,7 @@ uint8_t TM1637Display::print(uint8_t start_pos, const char* str) {
 | 
				
			|||||||
  uint8_t pos = start_pos;
 | 
					  uint8_t pos = start_pos;
 | 
				
			||||||
  for (; *str != '\0'; str++) {
 | 
					  for (; *str != '\0'; str++) {
 | 
				
			||||||
    uint8_t data = TM1637_UNKNOWN_CHAR;
 | 
					    uint8_t data = TM1637_UNKNOWN_CHAR;
 | 
				
			||||||
    if (*str >= ' ' && *str <= '}')
 | 
					    if (*str >= ' ' && *str <= '~')
 | 
				
			||||||
      data = pgm_read_byte(&TM1637_ASCII_TO_RAW[*str - ' ']);
 | 
					      data = pgm_read_byte(&TM1637_ASCII_TO_RAW[*str - ' ']);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    if (data == TM1637_UNKNOWN_CHAR) {
 | 
					    if (data == TM1637_UNKNOWN_CHAR) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user