Hi Peter, The persistent attribute has more to do with where the variables are stored in memory and initialized at startup as compared to how the variable is updated. Please view Section 5 of SLAA628 for more information: www.ti.com/.../slaa628.pdf Your code needs to use a static variable as compared to automatic, please refer to the the answer of this forum post: stackoverflow.com/.../difference-between-static-auto-global-and-local-variable-in-the-context-of-c-a Regards, Ryan
↧