Same thing happened to me. Dan is spot on diagnosing the problem. That was the fix for me. Nissan sells the replacement part (the one's they sell look like a little lime green button), only a couple of bucks.
While you're there, just buy another one and replace the clutch one as well. That went out on me a week after the brake one!