Skip to content

Commit

Permalink
Update Build
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthijsBurgh authored and github-actions[bot] committed Nov 20, 2023
1 parent 2ec60c0 commit bcf5145
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion build/roslib.js
Original file line number Diff line number Diff line change
Expand Up @@ -4039,8 +4039,8 @@ Ros.prototype.getMessageDetails = function(message, callback, failedCallback) {
Ros.prototype.decodeTypeDefs = function(defs) {
var that = this;

// calls itself recursively to resolve type definition using hints.
var decodeTypeDefsRec = function(theType, hints) {
// calls itself recursively to resolve type definition using hints.
var typeDefDict = {};
for (var i = 0; i < theType.fieldnames.length; i++) {
var arrayLen = theType.fieldarraylen[i];
Expand All @@ -4066,6 +4066,7 @@ Ros.prototype.decodeTypeDefs = function(defs) {
if (sub) {
var subResult = decodeTypeDefsRec(sub, hints);
if (arrayLen === -1) {
typeDefDict[fieldName] = subResult; // add this decoding result to dictionary
}
else {
typeDefDict[fieldName] = [subResult];
Expand Down
2 changes: 1 addition & 1 deletion build/roslib.min.js

Large diffs are not rendered by default.

0 comments on commit bcf5145

Please sign in to comment.