Problem solved. I put it onto the bike, did the 5 cycle "battery reset" and immediately shut it off. Then I plugged the battery into the charger, turned on the charger and it worked, it charged up all the way.
I don't know what I may have done wrong the first time but now it seems to be fine.