diff --git a/regovardump.h b/regovardump.h index 79585e7..7f44a4f 100644 --- a/regovardump.h +++ b/regovardump.h @@ -143,7 +143,7 @@ class RegoReader : public Component, public CanCallbackInterface { // 0x09FDFFE0 - No more data available memcpy(buf_ptr, data.data(), data.size()); - buf_ptr += data.size; + buf_ptr += data.size(); if ((buf_ptr - buf) % 0x500 == 0) ESP_LOGD(TAG, "read %d", buf_ptr - buf);