Not sure why you needed this change? It doesn't seem to change anything functionally (correct me if I'm wrong) and it's not consistent with the rest of the code (right above, there is an #if defined(DEVICE_ERROR_RED) that doesn't explicitily test the value of DEVICE_ERROR_RED).