Update i2smic.py

Added support for RPI CM4
This commit is contained in:
maziarzamani 2021-05-11 12:36:56 +02:00 committed by GitHub
parent 3464d3b2f9
commit e51fb55bf0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,7 +18,7 @@ I2S microphone support.
pimodel_select = 0
elif pi_model in ("RASPBERRY_PI_2B", "RASPBERRY_PI_3B", "RASPBERRY_PI_3B_PLUS", "RASPBERRY_PI_3A_PLUS"):
pimodel_select = 1
elif pi_model in ("RASPBERRY_PI_4B", ):
elif pi_model in ("RASPBERRY_PI_4B", "RASPBERRY_PI_CM4"):
pimodel_select = 2
else:
shell.bail("Unsupported Pi board detected.")