h1r9: check firmware running on r9 for r9 support

Previously we checked for OG support instead of r9 support because we
didn't yet have a way to tag firmware binaries with support for multiple
platforms.
This commit is contained in:
Michael Ossmann
2023-01-08 08:27:28 -05:00
parent c19f85ef24
commit 3796bc94d8

View File

@ -165,7 +165,7 @@ void detect_hardware_platform(void)
platform = BOARD_ID_HACKRF1_OG;
break;
case HACKRF1_R9_RESISTORS:
if (!(supported_platform() & PLATFORM_HACKRF1_OG)) { //FIXME temporary
if (!(supported_platform() & PLATFORM_HACKRF1_R9)) {
halt_and_flash(3000000);
}
platform = BOARD_ID_HACKRF1_R9;