Minor change to timing, fix config return value

- Modify timing to delay in 2 separate 1ms delays, before calling
network.update
- Create a new header each time a payload is retried, so the header_id
is incremented.
- Fix return value of 1 should be -1