Setting (and resetting) autofire device