From 1cc7491a3d9db8ca9531deef97777df2e08677c5 Mon Sep 17 00:00:00 2001 From: Julius Jurgelenas Date: Fri, 11 Feb 2022 11:00:41 +0200 Subject: [PATCH] Display warning for users if they are trying to flash BetaFPV custom fork. Closes #270 --- src/ui/components/FirmwareVersionForm/index.tsx | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/ui/components/FirmwareVersionForm/index.tsx b/src/ui/components/FirmwareVersionForm/index.tsx index 0702ee8a3..64d2e9a42 100644 --- a/src/ui/components/FirmwareVersionForm/index.tsx +++ b/src/ui/components/FirmwareVersionForm/index.tsx @@ -52,6 +52,10 @@ const styles = { firmwareVersionAlert: { marginTop: 2, }, + betaFpvAlert: { + marginTop: 2, + marginBottom: 1, + }, }; interface FirmwareVersionCardProps { @@ -388,6 +392,8 @@ const FirmwareVersionForm: FunctionComponent = ( })); }, [gitPullRequests]); + const showBetaFpvAlert = + localPath?.toLocaleLowerCase()?.indexOf('betafpv') > -1; return ( <> = ( onChange={onLocalPath} /> + {showBetaFpvAlert && ( + + ATTENTION + You are trying to flash an outdated BetaFPV custom ExpressLRS + fork. BetaFPV hardware is fully supported in recent official + ExpressLRS releases. We recommend using official firmware to + have the best ExpressLRS experience. + + )} +