mirror of
https://github.com/esphome/esphome.git
synced 2024-11-21 11:37:27 +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
@ -28,7 +28,7 @@ bool RawDumper::dump(RemoteReceiveData src) {
|
||||
ESP_LOGI(TAG, "%s", buffer);
|
||||
buffer_offset = 0;
|
||||
written = sprintf(buffer, " ");
|
||||
if (i + 1 < src.size()) {
|
||||
if (i + 1 < src.size() - 1) {
|
||||
written += sprintf(buffer + written, "%" PRId32 ", ", value);
|
||||
} else {
|
||||
written += sprintf(buffer + written, "%" PRId32, value);
|
||||
|
Loading…
Reference in New Issue
Block a user