check for all available wakeup ir-codes, make buf a local variable