Skip to content

Commit 7bf0557

Browse files
dimonomidcesantabot
authored andcommitted
BREAKING: Sys config API change
Now apps should use getters and setters instead of accessing struct fields directly, e.g. instead of `get_cfg()->update.timeout` it should be `mgos_sys_config_get_update_timeout()` to get the current value, and `mgos_sys_config_set_update_timeout(123)` to update the value. For now, the config structs are public, but they will be made private soon, so use accessors to keep your code working. PUBLISHED_FROM=f7d582421a8d7e4d1ed50a280f2670d8b62f8d45
1 parent 024f523 commit 7bf0557

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

v7.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2075,7 +2075,7 @@ enum cs_log_level {
20752075
void cs_log_set_level(enum cs_log_level level);
20762076

20772077
/* Set log filter. NULL (a default) logs everything. */
2078-
void cs_log_set_filter(char *source_file_name);
2078+
void cs_log_set_filter(const char *source_file_name);
20792079

20802080
int cs_log_print_prefix(enum cs_log_level level, const char *func,
20812081
const char *filename);

0 commit comments

Comments
 (0)