mirror of
https://github.com/esphome/esphome.git
synced 2024-11-21 14:38:10 +01:00
[remote_base] Fix extra comma in dump raw (#7774)
Co-authored-by: Jonathan Swoboda <jonathan.swoboda>
This commit is contained in:
parent
4fc19902ab
commit
372d68a177
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue