Skip to content

Commit e9a981c

Browse files
authored
Merge pull request #380 from claneys/master
Fix: wrong dynamicField type used for protobuf
2 parents 70b8260 + f1d517f commit e9a981c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/payload/payload.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ openxc_DynamicField openxc::payload::wrapNumber(float value) {
2020
openxc_DynamicField openxc::payload::wrapString(const char* value) {
2121
openxc_DynamicField sabot = {0};
2222
sabot.has_type = true;
23-
sabot.type = openxc_DynamicField_Type_NUM;
23+
sabot.type = openxc_DynamicField_Type_STRING;
2424
sabot.has_string_value = true;
2525
strcpy(sabot.string_value, value);
2626
return sabot;

0 commit comments

Comments
 (0)