add ifndef for 24 bit mode

Signed-off-by: Stephano Cetola <scetola@reachtech.com>