File tree Expand file tree Collapse file tree 3 files changed +17
-3
lines changed Expand file tree Collapse file tree 3 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ export const pybricksUsbDfuTroubleshootingUrl =
4646 'https://github.com/pybricks/support/discussions/688' ;
4747
4848export const pybricksUsbLinuxUdevRulesUrl =
49- 'https://github .com/pybricks/support/discussions/688#discussioncomment-3239099 ' ;
49+ 'https://pybricks .com/projects/tutorials/dev/tools/linux/ ' ;
5050
5151/** Pybricks copyright statement. */
5252export const pybricksCopyright = 'Copyright (c) 2020-2023 The Pybricks Authors' ;
Original file line number Diff line number Diff line change 33
44import { AnchorButton , Button , Intent } from '@blueprintjs/core' ;
55import React from 'react' ;
6- import { pybricksUsbDfuTroubleshootingUrl } from '../../app/constants' ;
6+ import {
7+ pybricksUsbDfuTroubleshootingUrl ,
8+ pybricksUsbLinuxUdevRulesUrl ,
9+ } from '../../app/constants' ;
710import ExternalLinkIcon from '../../components/ExternalLinkIcon' ;
811import type { CreateToast } from '../../toasterTypes' ;
912import { isLinux , isWindows } from '../../utils/os' ;
@@ -30,6 +33,16 @@ const NoDfuHub: React.VoidFunctionComponent<NoDfuHubProps> = ({
3033 { i18n . translate ( 'noDfuHub.installUsbDriverButton' ) }
3134 </ Button >
3235 ) }
36+ { isLinux ( ) && (
37+ < AnchorButton
38+ icon = "help"
39+ href = { pybricksUsbLinuxUdevRulesUrl }
40+ target = "_blank"
41+ >
42+ { i18n . translate ( 'noDfuHub.configureUdevRulesButton' ) }
43+ < ExternalLinkIcon />
44+ </ AnchorButton >
45+ ) }
3346 < AnchorButton
3447 icon = "help"
3548 href = { pybricksUsbDfuTroubleshootingUrl }
Original file line number Diff line number Diff line change 1515 "linux" : " You may need to add udev rules before you can connect to your hub."
1616 },
1717 "troubleshootButton" : " Troubleshooting Tips" ,
18- "installUsbDriverButton" : " Install USB Driver"
18+ "installUsbDriverButton" : " Install USB Driver" ,
19+ "configureUdevRulesButton" : " Configure udev rules"
1920 },
2021 "noDfuInterface" : {
2122 "message" : " This is very unusual. The USB device did not contain the expected interface."
You can’t perform that action at this time.
0 commit comments