Merge pull request #1725 from balena-os/add_revpi_boards_to_raspberrypi_variants

Add revpi-connect, revpi-core-3 to Raspberry Pi variants
This commit is contained in:
bulldozer-balena[bot] 2021-06-18 12:13:52 +00:00 committed by GitHub
commit 1bfcd6b791
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -53,9 +53,14 @@ export class ConfigTxt extends ConfigBackend {
public async matches(deviceType: string): Promise<boolean> {
return (
['fincm3', 'rt-rpi-300', '243390-rpi3', 'nebra-hnt'].includes(
deviceType,
) || deviceType.startsWith('raspberry')
[
'fincm3',
'rt-rpi-300',
'243390-rpi3',
'nebra-hnt',
'revpi-connect',
'revpi-core-3',
].includes(deviceType) || deviceType.startsWith('raspberry')
);
}