I have these partitions
factory, app, factory, ,512K,
ota_0, app, ota_0, , 1332K,
ota_1, app, ota_1, ,1332K,
and I have a custom upload script that uploads the built program firmware (the actual firmware that gets compiled and would normally be uploaded to factory) to ota_0. However because PlatformIO thinks it has to upload the firmware to factory, it throws an error that the factory partition is too small for the firmware, when in reality my upload script would upload the firmware to ota_0, which is big enough.
How do I tell PlatformIO to ignore the size mismatch?
Oh, and also my custom upload script uploads a different firmware to factory.