ex boyfriend?

So me and my boyfriend broke up about a month ago he broke up with me and a couple of weeks ago he texted me saying he wanted to get back together because he missed me. My parents and friends weren’t really fond of the idea because they thought he treated me like crap (he picked his friends over me a lot and put in little effort to make plans). I am almost 17 and he was the first person I ever loved and I missed him as well so I gave him a second chance. He showed up almost an hour late to hangout and then said he was too tired to do anything after we had only hung out for about an hour. He then made plans with his friends in front of me. I told him I thought it would be best if we stayed as friends because he didn’t seem as committed as I wanted him to be. Was this the right decision? Or should I have given him another chance?