The extern_led is defined on port 3 and also switched to 0, but where the intern_led is switched to 1 the extern_led is not swithed to 1.