We consider the synthesis of optimal controls for continuous feedback systems by recasting the problem to a hybrid optimal
control problem which is to synthesize optimal enabling conditions for switching between locations in which the control is
constant. We provide a single- pass algorithm to solve the dynamic programming problem that arises, with added constraints
to ensure non-Zeno trajectories.