ref: https://www.reddit.com/r/embedded/comments/z689pj/comment/iy3ww4x/?utm_source=share&utm_medium=web2x&context=3 The reset handler is written more like C than CPP. Implements the suggestions given in the linked comments on Reddit.