How to Fix Burnout as a Developer?View other answers to this thread
Learn Something New Everyday,
Connect With The Best Developers!
You probably need to take a break. How much is really depends on your circumstances, but it's the best way to recover, like Hipkiss already said. Personally I think it's also important to identify the exact reasons that caused the burn-out to avoid them further down the road. It can be frequent overtime, lack of rest or social communication, frustration with your existing codebase or colleagues - you name it.
Try to identify what is bothering you and what gives you motivation. Perhaps you simply need a vacation. Or perhaps you need to quit your job altogether and enjoy your life in other ways for several months. After all, it's not really healthy for both mind and body to forget about everything but programming.