Glad you figured it out. The batteries for these bikes don't last very long. While you're in diagnostic mode, check the voltage at the battery with the engine RPM around 3k. You should have between 13 and 15 volts at the battery terminals. If it's below or above these values, your charging system may need some attention. An easy check is the 3 yellow wires from the alternator to the regulator/rectifier. The Molex type connector can build up a bit of corrosion, to the point where the connectors will spark and burn the plastic. You can solder the wires together, but this will make swapping the R/R out a bit of a pain. It's also possible to get a replacement connecter and terminals.
Now get out there and ride, while there's still some good weather. :-)
Luke M
Used to have a 1979 CB750L, sold it as a parts bike, now riding a slightly modified 1984 VT700C. Network/Field Engineer. Central OH, USA, Earth, Sol System, Milky Way Galaxy, Universe.