Skip to content

Commit

Permalink
fix: Device Model returns Unknown for Pi devices
Browse files Browse the repository at this point in the history
  • Loading branch information
nicomiguelino committed Sep 20, 2024
1 parent f95a944 commit e1ac42f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions server.py
Original file line number Diff line number Diff line change
Expand Up @@ -1555,10 +1555,9 @@ def system_info():
player_name = settings['player_name']

device_model = raspberry_pi_helper.parse_cpu_info().get('model')

if device_model is None and machine() == 'x86_64':
device_model = 'Generic x86_64 Device'
else:
device_model = 'Unknown'

version = '{}@{}'.format(
diagnostics.get_git_branch(),
Expand Down

0 comments on commit e1ac42f

Please sign in to comment.