bug avrentropy + cleaning spi code