Help with getDeviceSettings.screenShape if statement

Am I formatting this correct? (because it's not working...)
if (System.getDeviceSettings().screenShape == SCREEN_SHAPE_SEMI_OCTAGON) {...}
I need to change one small section of code to make semi-octagon shaped screens function (not something I can do from resources).
Longer explanation:   I programmatically change the color of my battery status.  Works great on all the color screens.  On the Instinct 2 solar, a black and white semi octagon display, the display matches the background in certain conditions and appears to not display.  I will make the battery display monochromatic for this one watch.
Thanks