which part of the coding did you change,WOW WOW WOW @Adams you are a legend !!! This is working for me this morning i cannot believe it .
I have entered your coding into my modules, lock the doors nothing but lock doors and hold finger on the lock button for a second and the mirrors fold. Mirrors dont unfold on unlock but when key is in the ignition.