Changed doSleep() so that brown-out detection is disabled before sleeping.