sys/log: Add set watermark support to log_slot1
@@ -108,6 +108,12 @@ log_fcb_slot1_storage_info(struct log *log, struct log_storage_info *info)
return LOG_FCB_SLOT1_CALL(log, log_storage_info, info);
}
+static int
+log_fcb_slot1_set_watermark(struct log *log, uint32_t index)
+{
+ return LOG_FCB_SLOT1_CALL(log, log_set_watermark, index);
+}
+
static int
log_fcb_slot1_registered(struct log *log)
{
@@ -153,6 +159,9 @@ const struct log_handler log_fcb_slot1_handler = {
.log_flush = log_fcb_slot1_flush,
#if MYNEWT_VAL(LOG_STORAGE_INFO)
.log_storage_info = log_fcb_slot1_storage_info,
+#endif
+#if MYNEWT_VAL(LOG_STORAGE_WATERMARK)
+ .log_set_watermark = log_fcb_slot1_set_watermark,
#endif
.log_registered = log_fcb_slot1_registered,
};
