You said that after you earned the capital, the profit would be split in half. I think it seems a little unfair to you. It is equivalent to waiting for him to earn back all the money. He didn't have to do anything, and the money came back. Although you can officially start making your own money, you did it for nothing before.
The main problem now is that you did it for nothing in the early stage, so I personally think it's best to count your salary in the early stage, and help him earn his capital back as a part-time job, and then divide the profit into half after the capital is earned back.