Out of memory, how to reduce this program's size

Smart delay is part of tinygps+ examples

Not best solution bit it works