Fixed bug, new check for brightness range would cause flash to not use
extremes. Added check for powerloss.