Commit Graph
10 Commits
Author SHA1 Message Date
Ari Sundholm 4984ecf418 Implement loading settings from SD card 2018-10-08 16:58:26 +03:00
Ari Sundholm a5b329584e Factor writing to Flash memory and SD->Flash copying into functions
This is in preparation for the feature to import settings from the
SD card.
2018-10-08 16:58:26 +03:00
Ari Sundholm 0bb490faa0 Don't automagically update profile->input link 2018-03-15 13:27:12 +02:00
Ari Sundholm 5852eb3465 Prevent profile loads induced by profile loads 2018-03-15 13:27:12 +02:00
Ari Sundholm f337852e19 Implement two-way profile linking in a minimalistic way 2018-03-15 13:27:12 +02:00
Ari Sundholm 04c9137e29 Move default input field from profiles to initconfig
This makes things consistent. Without this change, the default
input would be dictated by the profile associated with AV1.
2017-11-11 00:45:49 +02:00
Ari Sundholm d638b6a650 Shrink write_userdata() by 20 bytes 2017-11-11 00:25:33 +02:00
Ari Sundholm 571b588da7 Shrink the code by 16 bytes by using an array to map values 2017-11-11 00:25:33 +02:00
Ari Sundholm ab61fd0c67 Don't save initconfig every time the physical input and profile change
This spares the Flash from some unnecessary writes. If the profile
tied to a physical input changes, this change will be reflected in the
initconfig when the new profile is loaded.
2017-11-11 00:25:33 +02:00
Ari Sundholm 1979bdb333 Save the last profile used for each physical input 2017-11-02 23:38:43 +02:00