Will faulty upper timing case cover gadgets repair p0171 and p0174? on 2001 BMW X5

I have a check engine light and have received above codes need most likely cause. Had diagnostic and smoke test, told it was repaired to fix codes p0171 and p0174 but light on again.

Asked by for the 2001 BMW X5