On second thought might be sidestand switch..........................
from the service manual..............
'The side stand switch should function as follows :
When the transmission is shifted into a gear from neutral with the side stand down, the ignition shuts off and the engine
will stop.
When in neutral, the neutral switch line (a) of the spark unit is connected to ground via the neutral switch. When the
side stand is up, the side stand switch line (b) of the spark unit passes to ground via the side stand switch. The spark
unit monitors lines (a) and (b), and provides spark only when one or both of those lines is connected to ground via the a neutral switch or the side stand switch.'