File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ public class Board
21
21
private static readonly Lazy < Board > board = new Lazy < Board > ( LoadBoard ) ;
22
22
private readonly Dictionary < string , string > settings ;
23
23
24
- private const string raspberryPiProcessor = "BCM2708" ;
24
+ private string [ ] raspberryPiProcessor = new string [ ] { "BCM2708" , "BCM2709" } ;
25
25
26
26
#endregion
27
27
@@ -52,7 +52,7 @@ public static Board Current
52
52
/// </value>
53
53
public bool IsRaspberryPi
54
54
{
55
- get { return string . Equals ( Processor , raspberryPiProcessor , StringComparison . InvariantCultureIgnoreCase ) ; }
55
+ get { return ( Array . IndexOf ( raspberryPiProcessor , Processor ) >= 0 ) ; }
56
56
}
57
57
58
58
/// <summary>
@@ -139,6 +139,9 @@ public char Model
139
139
case 0x10 :
140
140
return 'B' ;
141
141
142
+ case 0x1a01040 :
143
+ return '2' ;
144
+
142
145
default :
143
146
return ( char ) 0 ;
144
147
}
@@ -175,6 +178,9 @@ public int Revision
175
178
176
179
case 0x10 :
177
180
return 3 ; // Model B+, rev3
181
+
182
+ case 0x1a01040 :
183
+ return 4 ;
178
184
179
185
default :
180
186
return 0 ; // Unknown
You can’t perform that action at this time.
0 commit comments