If you don't want to change your code, what if you add a small NPN transistor to the base of the PNP?

Connect the NPN to GND instead of VDD (all sounds plausible in my head).

Robert