Merge "hal: fix 24bit compilation error with extended flag disabled"