warning fixes
spi and tx handling