Despite what is shown on TV shows all the time, a defibrillator does not restart a flatlined heart. The purpose of a defibrillator is to reset an irregular heartbeat (even a faint one). The only course of action for a flatlined heart is chest compressions.