function [xdnew] = dst_eq2(xc,xd,t,evt_nbr)
%
%  Discrete event model of [H9.14]
%
uR = xc(1);
i0 = xc(2);
m0 = xd(1);
%
if evt_nbr == -1,
  %
  %  A state event has occurred.  We need to toggle the diode switch
  %
  m0 = not(m0);
end
%
xdnew = m0;
%
return