What the law really comes down to is that it is illegal to buy, sell or have marijiuana, but it is NOT illegal to be under its influences.
The law does change a bit for driving, though. I'm thinking that you just got yourself a shitty lawyer...