He resigned from this office on September 28, 1776. However, he continued to serve as a volunteer in General Washington's staff through December 1776.
This passage describes a person who resigned from an official position but continued to work for the general until December of that year.