- public int log_limit() {
- if (storage_size > 0) {
- int log_limit = storage_size;
-
- if (storage_erase_unit > 0 && use_flash_for_config())
- log_limit -= storage_erase_unit;
-
- if (log_limit > 0)
- return log_limit / 1024;
- }
- return 1024;
- }
-