Conditions for Setting the DTC
WARNING: This page is about a different car, the 2004 GMC Sierra and 2004 Chevrolet Silverado. However, it is still accessible from the selected car via links, so may be relevant.
DTC P2797 sets if the following condition occurs 3 consecutive times in the same trip.
The TFP switch state changes from either D3 or D4 to any other state while in engine idle off mode.