cleaned up ppm2 spi c code