Why is the brake light on a 1989 Chevy S-10 Blazer flashing?

Well what do you know I solved the mystery mmyself it turns out after I paid to replace wheel cylinders and hoses and bleeding the brakes the cure was an $8.00 brake switch. Once I changed the switch the flashing brake light monster went away. So to anyone else who has a flashing brake light problem with your 89 Chevy S10 Blazer if you get a code 10 that is when the brake warning light flashes 10 times the fix is a new brake switch hope this helps someone.