blind F7 nucleo fix attempt

This commit is contained in:
rusefillc 2023-10-26 15:03:12 -04:00
parent 9c54180bf6
commit df44f4480c
1 changed files with 3 additions and 1 deletions

View File

@ -93,7 +93,9 @@ public class FirmwareFlasher {
String bundle = BundleUtil.readBundleFullNameNotNull();
if (bundle.contains("h7"))
return HwPlatform.H7;
// how does this "hardware" key even work? does it work? shall we rely on bunbdle name like above?
if (bundle.contains("f7"))
return HwPlatform.F7;
// how does this "hardware" key even work? does it work? shall we rely on bundle name like above?
String value = getConfig().getRoot().getProperty("hardware", HwPlatform.F4.name());
return HwPlatform.resolve(value);
}