[remote_base] Fix extra comma in dump raw (#7774)

Co-authored-by: Jonathan Swoboda <jonathan.swoboda>
This commit is contained in:
Jonathan Swoboda 2024-11-20 13:27:23 -05:00 committed by GitHub
parent 4fc19902ab
commit 372d68a177
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -28,7 +28,7 @@ bool RawDumper::dump(RemoteReceiveData src) {
ESP_LOGI(TAG, "%s", buffer); ESP_LOGI(TAG, "%s", buffer);
buffer_offset = 0; buffer_offset = 0;
written = sprintf(buffer, " "); written = sprintf(buffer, " ");
if (i + 1 < src.size()) { if (i + 1 < src.size() - 1) {
written += sprintf(buffer + written, "%" PRId32 ", ", value); written += sprintf(buffer + written, "%" PRId32 ", ", value);
} else { } else {
written += sprintf(buffer + written, "%" PRId32, value); written += sprintf(buffer + written, "%" PRId32, value);