Added function to save the enabled protocols to non-volatile memory

Includes a test!

(also verified by real-world testing with device)