Oh thanks. The photo shows an older version. On mine, the diode is not placed diagonally, but has its own marked place - parallel to the fan, (marked "+" and "-"). I rang the tester all around, and this is logically a n-p-n transistor. But I was wrong. On the new board this is marked XOYX and...