Well, I don't think the doctor was a diver.
The problem is not with the medication -- It's with the problem for which the medication was prescribed. This is a bronchodilator, which means it's for relaxing spasm in the muscles around the air passages into the lungs. This is, in effect, a kind of asthma, although one brought on by the irritation from the viral illness. What it means to me, though, is that the doctor heard some wheezing in your lungs that made him think this medication would be necessary and effective. In essence, you are a symptomatic asthmatic at the moment. It is not recommended that symptomatic asthmatics dive, because air can get trapped behind the areas of bronchopasm and cause pulmonary barotrauma.
Now, your symptoms may not be very bad (in which case one wonders why the medication was prescribed) or they may completely resolve with the medication. But issuing a blanket statement that it is okay to dive right now is a bit optimistic, in my view.
Beta agonists like this one can also contribute to irregular heart rhythms in some patients, so at the very least, one should have some experience with the medication on land, to know how one is going to react to it, before taking it underwater.
Hope this is helpful.