I'd made my plan whilst I was waiting for her.
I came up with a plan while I waited for her.