Skip to content

Commit fa36f78

Browse files
committed
fix upload security log
1 parent 76be884 commit fa36f78

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

src/MicroOcpp/Model/Diagnostics/DiagnosticsService.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -626,7 +626,7 @@ bool DiagnosticsService::uploadDiagnostics() {
626626
int ret;
627627

628628
ret = snprintf(diagPreamble, MO_DIAG_PREAMBLE_SIZE,
629-
"### %s Security Log%s%s\n%s\n",
629+
"### %s Hardware Diagnostics%s%s\n%s\n",
630630
cpModel ? cpModel : "Charger",
631631
fwVersion ? " - v. " : "", fwVersion ? fwVersion : "",
632632
jsonDate);
@@ -774,8 +774,8 @@ bool DiagnosticsService::uploadSecurityLog() {
774774

775775
diagReaderHasData = false;
776776

777-
auto cpModel = makeString(getMemoryTag());
778-
auto fwVersion = makeString(getMemoryTag());
777+
const char *cpModel = nullptr;
778+
const char *fwVersion = nullptr;
779779

780780
if (auto bootService = context.getModelCommon().getBootService()) {
781781
auto bnData = bootService->getBootNotificationData();
@@ -792,9 +792,9 @@ bool DiagnosticsService::uploadSecurityLog() {
792792
int ret;
793793

794794
ret = snprintf(diagPreamble, MO_DIAG_PREAMBLE_SIZE,
795-
"### %s Hardware Diagnostics%s%s\n%s\n",
796-
cpModel.c_str(),
797-
fwVersion.empty() ? "" : " - v. ", fwVersion.c_str(),
795+
"### %s Security Log%s%s\n%s\n",
796+
cpModel ? cpModel : "Charger",
797+
fwVersion ? " - v. " : "", fwVersion ? fwVersion : "",
798798
jsonDate);
799799

800800
if (ret < 0 || (size_t)ret >= MO_DIAG_PREAMBLE_SIZE) {

tests/benchmarks/scripts/measure_heap.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@
100100
'TC_J_10_CS',
101101
'TC_N_25_CS',
102102
'TC_N_26_CS',
103+
'TC_N_35_CS',
103104
]
104105

105106
# Result data set

0 commit comments

Comments
 (0)