removed some excessive logging

This commit is contained in:
2018-01-12 10:03:07 +01:00
parent e471497577
commit 15ebb6ab10
4 changed files with 15 additions and 6 deletions
+8 -2
View File
@@ -2,6 +2,7 @@
// Created by MightyPork on 2017/11/21.
//
#include <framework/system_settings.h>
#include "platform.h"
#include "framework/settings.h"
#include "utils/ini_parser.h"
@@ -103,8 +104,13 @@ static void settings_bulkwrite_cb(BulkWrite *bulk, const uint8_t *chunk, uint32_
// clean-up request
if (chunk == NULL) {
ini_parse_end();
settings_load_ini_end();
dbg("INI write complete.");
if (bulk->offset > 0) {
settings_load_ini_end();
dbg("INI write complete");
} else {
dbg("INI write failed");
}
free(bulk);
return;
+3
View File
@@ -19,6 +19,9 @@ static TF_Result bulkwrite_lst(TinyFrame *tf, TF_Msg *msg)
// this is a final call before timeout, to clean up
if (msg->data == NULL) {
if (bulk->offset != bulk->len) {
TF_Error("Bulk write ended prematurely with %d written out of %d", (int)bulk->offset, (int)bulk->len);
}
goto close;
}