You can clear old codes,
The MIL (Engine Light) performs three functions:
A) When the key is switched “ON” the first (and hopefully ONLY) illumination verifies the ECU is booting up, and then goes “off”. The engine is then ready to start.
B) If it illuminates and remains “on” before or during a ride it indicates a fault and corrective action is necessary.
C) When troubleshooting with the engine “off”, if it illuminates again after a few seconds it will provide a series of Long and Short blinks to indicate a service code for troubleshooting. (Refer to the Troubleshooting section of the MM for what the codes represent.)
NOTE: There may be more than one issue (code), but the ECU will only show the latest code.
Once a service code is determined and (hopefully) resolved:
1. Ground diagnostic wire (the single wire with a female bullet connector next to the ECU) to a clean part of the chassis, or to the Negative side of the battery.
2. Set the kill switch to the run position.
3. Hold the throttle fully open.
4. Turn the key on. MIL light will illuminate for a few seconds.
5. As soon as the MIL light goes out (NOT before), and before the MIL comes on again, release the throttle.
6. There will be a couple fast blinks after that to let you know the code(s) are cleared.
Now run the engine. If no Codes are present ride the bike and monitor the MIL for any further codes. The MIL will illuminate and remain steady if any further faults appear.
Have you checked the sidestand switch?
If in doubt just unplug it's connector.
Also the kill switch. You need to check for continuity through the switch, otherwise, NO spark.