scripting settings - synthetos/TinyG GitHub Wiki
If you are going to automate the scripting of TinyG settings, you need to do a short delay (40ms or so) between each setting that is applied. This is due to having to disable interrupts while writing to the flash.