Firmware Upload: Fix #498, logic error that doesn't crash my build for some reason, but crashes others (rightfully so)