In an internal combustion engine that can burn two fuels, the main fuel
may become unavailable, either temporarily or until the main fuel is
replenished. The present apparatus determines when to fuel an engine with
main fuel and secondary fuel, or secondary fuel alone. The apparatus
includes a main-fuel supply system comprising a main-fuel injection valve
that introduces main fuel into an engine combustion chamber; a
secondary-fuel injection system comprising a secondary-fuel injection
valve that introduces secondary fuel directly into the combustion
chamber; a pressure sensor associated with the main-fuel supply system
for determining injection pressure inside the main-fuel injection valve;
and an electronic controller in communication with the pressure sensor
and programmable to separately command actuation of the secondary-fuel
and the main-fuel injection valve when injection pressure is greater than
a predetermined threshold, and to otherwise command actuation of the
secondary-fuel injection valve and not the main-fuel injection valve.