Does anyone know how the oil temp sensor effects the ECM. The problem I'm having is when I start the bike it runs fine but after 5 minutes it starts running rough and if I shut it off it won't restart till it sits for awhile. I checked the oil temp and it was about 175 degrees when this happens.
May be a stupid question, but are you backing of the enriching lever after it warms up?
Rylan has a pretty good video on how to reset the TPS and idle mix on the old bikes.. all you really need is a paper clip and a few minutes. I'd try that before looking for weird issues like oil temp sensors and what-not. In fact, he has one video of common issues and how to fix them for the old bikes.. I think the symptom you are describing is covered in it.