The negative cable, which is normally connected to the negative pole of the battery, is fastened to the crankcase. From here, the cable branches off and splits up within the electrical system to carry the ground connection to the different elements in the system.

The image shows the ground connection on left side of the engine crankcase.
The battery charging circuit and power distribution
Electrical power for lighting and signalling devicesRemoval of the throttle twistgrip
Peel back the rubber sleeve (a) protecting the throttle control cables.
Undo the screws (b) of the throttle grip (6) and open the command.
Disconnect the throttle grip cables (10) by unhooking the cable ends (c) from
their seats.
Remove the throttle twistgrip (6) from the handlebar.
...
Riding modes
The rider may select between four different riding modes (sport, touring,
urban and enduro) from the dashboard and via
the "turn indicator reset" button (3). Each riding mode contains settings for
the following:
The dtc set-up (sect. 6 - 7 "Dtc (ducati traction control) setting
function" ...
Engaged gear indicator
This function displays the gears (1, fig. 25).
The instrument panel receives information and indicates the
engaged gear or "n" for neutral.
Note
In the case of a gear sensor "error", a dash "-" (not
flashing) will be displayed.
...