I'm using an AVR chip (i.e. Arduino Uno) to monitor SPI traffic on an external device and I'm running into a problem due to the fact that the external device periodically restarts itself (by design). This results in a momentary drop in voltage across the CLK pin which my AVR mistakes for an extra bit. Net result is that the SPI shift register goes out of sync to the incoming data stream by 1 bit every time the device restarts.
I can detect these restart events due to the start-up delay where no SPI traffic is being sent, is there any easy way to reset the shift register when this happens to cause SPI reads to restart at bit 0?