adding application controll

This commit is contained in:
jakani24
2024-05-10 11:24:44 +02:00
parent 7f0cb49f0a
commit ea13c6dc6a
34 changed files with 930 additions and 244 deletions

View File

@@ -72,6 +72,8 @@ int update_settings(const char* settings_type) {
res = download_file_from_srv(url, EXCLUDED_FOLDERS);
else if (strcmp(settings_type, "sched") == 0)
res = download_file_from_srv(url, SCHED_PATH);
else if (strcmp(settings_type, "dissalowed_start") == 0)
res = download_file_from_srv(url, DISALLOWED_START_FOLDERS);
//int res = 0;
if (res != 0) {
return 1;
@@ -94,6 +96,10 @@ int action_update_settings() {
if (update_settings("rtp_excluded") != 0) {
err = 9;
}
//update the disallowed start folders
if (update_settings("dissalowed_start") != 0) {
err = 9;
}
//update the schedule
if (update_settings("sched") != 0) {
err = 9;