Fixing LED flash during heartbeat