fix spi read register error in hal