If your H1-renew application was received by CIS before the old H-1 expired. You are ok to work 240 days. Otherwise, stay is legal, work is ilegal. You may need work on EAD or leave to regain H-1B status.