The car will switch on its own to the ICE drive and use gasoline or diesel to keep going. It will then automatically start charging the battery again.