I'm probably too stupid to see the point here. If `error` is set to 0 the code in the block bellow won't be run at all.

Actually, what the old code tried to do was to change the value on a PIN to swap the value on the GPIO PIN every second. This could be easily done with this code too if we extended the conditional part of this while to `error == 0`.