Optimized structure HAL
bugfix, dio flood.