HAL_AVR: fixed SPI bus speed switching

this fixes a bug in changing the bus speed between devices