File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -73,15 +73,15 @@ def get_armbian_release_field(self, field):
7373 pass
7474
7575 return field_value
76-
76+
7777 def get_device_model (self ):
7878 """
7979 Search /proc/device-tree/model for the device model and return its value, if found,
8080 otherwise None.
8181 """
8282 try :
83- with open ('/proc/device-tree/model' , 'r' ) as model_file :
84- model = model_file .read ()
85- return model
83+ with open ('/proc/device-tree/model' , 'r' ) as model_file :
84+ model = model_file .read ()
85+ return model
8686 except FileNotFoundError :
87- pass
87+ pass
Original file line number Diff line number Diff line change @@ -310,7 +310,7 @@ def _armbian_id(self):
310310 if board_value == "orangepipc" :
311311 return ORANGE_PI_PC
312312 return None
313-
313+
314314 def _sama5_id (self ):
315315 """Check what type sama5 board."""
316316 board_value = self .detector .get_device_model ()
@@ -337,7 +337,7 @@ def any_beaglebone(self):
337337 def any_orange_pi (self ):
338338 """Check whether the current board is any defined Orange Pi."""
339339 return self .ORANGE_PI_PC
340-
340+
341341 @property
342342 def any_giant_board (self ):
343343 return self .GIANT_BOARD
You can’t perform that action at this time.
0 commit comments