mirror of
				https://github.com/KevinMidboe/python-gpiozero.git
				synced 2025-10-29 17:50:37 +00:00 
			
		
		
		
	Supply 'default' values for some of the pi-revision fields, where appropriate
This commit is contained in:
		| @@ -846,7 +846,7 @@ class PiBoardInfo(namedtuple('PiBoardInfo', ( | |||||||
|                         0: '1.0', # is this right? |                         0: '1.0', # is this right? | ||||||
|                         1: '1.0', |                         1: '1.0', | ||||||
|                         2: '2.0', |                         2: '2.0', | ||||||
|                         }[revcode_revision] |                         }.get(revcode_revision, 'Unknown') | ||||||
|                 else: |                 else: | ||||||
|                     pcb_revision = '1.%d' % revcode_revision |                     pcb_revision = '1.%d' % revcode_revision | ||||||
|                 released = { |                 released = { | ||||||
| @@ -868,12 +868,12 @@ class PiBoardInfo(namedtuple('PiBoardInfo', ( | |||||||
|                     0: 'Sony', |                     0: 'Sony', | ||||||
|                     1: 'Egoman', |                     1: 'Egoman', | ||||||
|                     2: 'Embest', |                     2: 'Embest', | ||||||
|                     }[revcode_manufacturer] |                     }.get(revcode_manufacturer, 'Unknown') | ||||||
|                 memory = { |                 memory = { | ||||||
|                     0: 256, |                     0: 256, | ||||||
|                     1: 512, |                     1: 512, | ||||||
|                     2: 1024, |                     2: 1024, | ||||||
|                     }[revcode_memory] |                     }.get(revcode_memory, 0) | ||||||
|                 storage = { |                 storage = { | ||||||
|                     'A': 'SD', |                     'A': 'SD', | ||||||
|                     'B': 'SD', |                     'B': 'SD', | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user