Skip to content

fixing compilation for adding surveyor to ping-cpp#1

Draft
rileytuttle-havoc wants to merge 1 commit intohavoc-masterfrom
rtuttle/SurveyorFixes
Draft

fixing compilation for adding surveyor to ping-cpp#1
rileytuttle-havoc wants to merge 1 commit intohavoc-masterfrom
rtuttle/SurveyorFixes

Conversation

@rileytuttle-havoc
Copy link
Copy Markdown
Collaborator

No description provided.


return int(total_size)

def escape_reserved(self, name):
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one of the surveyor message field names was "string" so it generated a string() function which is not allowed

'uint16_t': 'PRIu16',
'uint32_t': 'PRIu32',
'uint64_t': 'PRIu64',
'float': 'f',
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think other devices never exercised this code. but the single quotes get stripped for these specifiers. thats alright for the macros above because they will get expanded. the f and d will not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants