@@ -9,20 +9,21 @@ import { isWindows } from '../utils/platform'
9
9
10
10
const Flash = lazy ( ( ) => import ( './Flash' ) )
11
11
12
+ const VENDOR_ID = '18D1'
13
+ const PRODUCT_ID = 'D00D'
14
+
12
15
export default function App ( ) {
13
16
const version = import . meta. env . VITE_PUBLIC_GIT_SHA || 'dev'
14
- console . info ( `flash.comma.ai version: ${ version } ` ) ;
17
+ console . info ( `flash.comma.ai version: ${ version } ` )
15
18
return (
16
19
< div className = "flex flex-col lg:flex-row flex-wrap" >
17
20
< main className = "p-12 md:p-16 lg:p-20 xl:p-24 w-screen max-w-none lg:max-w-prose lg:w-auto h-auto lg:h-screen lg:overflow-y-auto prose dark:prose-invert prose-green bg-white dark:bg-gray-900" >
18
21
< section >
19
22
< img src = { comma } alt = "comma" width = { 128 } height = { 128 } className = "dark:invert" />
20
23
< h1 > flash.comma.ai</ h1 >
21
-
22
- < p > This tool allows you to flash AGNOS onto your comma device.</ p >
23
24
< p >
24
- AGNOS is the Ubuntu-based operating system for your { " " }
25
- < a href = "https://comma.ai/shop/comma-3x" target = "_blank" > comma 3/3X</ a > .
25
+ This tool allows you to flash AGNOS onto your comma device. AGNOS is the Ubuntu-based operating system for
26
+ your < a href = "https://comma.ai/shop/comma-3x" target = "_blank" > comma 3/3X</ a > .
26
27
</ p >
27
28
</ section >
28
29
< hr />
@@ -31,24 +32,23 @@ export default function App() {
31
32
< h2 > Requirements</ h2 >
32
33
< ul >
33
34
< li >
34
- A web browser which supports WebUSB (such as Google Chrome, Microsoft Edge, Opera), running on Windows, macOS, Linux, or Android.
35
+ A web browser which supports < a href = "https://caniuse.com/webusb" target = "_blank" > WebUSB</ a >
36
+ { " " } (such as Google Chrome, Microsoft Edge, Opera), running on Windows, macOS, Linux, or Android.
35
37
</ li >
36
38
< li >
37
39
A USB-C cable to power your device outside the car.
38
40
</ li >
39
41
< li >
40
- Another USB-C cable to connect the device to your computer.
42
+ A good quality USB-C cable to connect the device to your computer. < span title = "SuperSpeed" > USB 3</ span >
43
+ { " " } is recommended for faster flashing speed.
41
44
</ li >
42
45
</ ul >
43
46
{ isWindows && ( < >
44
47
< h3 > USB Driver</ h3 >
45
- < p >
46
- You need additional driver software for Windows before you connect
47
- your device.
48
- </ p >
48
+ < p > You need additional driver software for Windows before you connect your device.</ p >
49
49
< ol >
50
50
< li >
51
- Download and install < a href = "https://zadig.akeo.ie/" > Zadig</ a > .
51
+ Download and run < a href = "https://zadig.akeo.ie/" target = "_blank "> Zadig</ a > .
52
52
</ li >
53
53
< li >
54
54
Under < code > Device</ code > in the menu bar, select < code > Create New Device</ code > .
@@ -60,10 +60,9 @@ export default function App() {
60
60
/>
61
61
</ li >
62
62
< li >
63
- Fill in three fields. The first field is just a description and
64
- you can fill in anything. The next two fields are very important.
65
- Fill them in with < code > 18D1</ code > and < code > D00D</ code > respectively.
66
- Press "Install Driver" and give it a few minutes to install.
63
+ Fill in three fields. The first field is just a description and you can fill in anything. The next two
64
+ fields are very important. Fill them in with < code > { VENDOR_ID } </ code > and < code > { PRODUCT_ID } </ code >
65
+ respectively. Press "Install Driver" and give it a few minutes to install.
67
66
< img
68
67
src = { zadigForm }
69
68
alt = "Zadig Form"
@@ -72,9 +71,7 @@ export default function App() {
72
71
/>
73
72
</ li >
74
73
</ ol >
75
- < p >
76
- No additional software is required for macOS or Linux.
77
- </ p >
74
+ < p > No additional software is required for macOS, Linux or Android.</ p >
78
75
</ > ) }
79
76
</ section >
80
77
< hr />
@@ -159,7 +156,7 @@ export default function App() {
159
156
</ div >
160
157
161
158
< div className = "w-screen max-w-none p-12 md:p-16 prose dark:prose-invert bg-white dark:bg-gray-900 lg:hidden" >
162
- flash.comma.ai version: < code > { version . substring ( 0 , 7 ) } </ code >
159
+ flash.comma.ai version: < code > { version } </ code >
163
160
</ div >
164
161
</ div >
165
162
)
0 commit comments