Skip to content

Commit

Permalink
MONICA-74 : Fixes additional reverse conversion of each array value
Browse files Browse the repository at this point in the history
  • Loading branch information
sahoyle committed Apr 27, 2022
1 parent 18228c2 commit b8ae893
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/atnf/atoms/mon/translation/TranslationBytesToString.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ public PointData translate(PointData data) {
strval += (char) thisbyte;
}
}
break;
case 1: // Contents of each array element are read left to right
for (int j = 56; j >= 0; j -= 8) {
// Convert this byte into a string character
Expand All @@ -78,7 +79,9 @@ public PointData translate(PointData data) {
strval += (char) thisbyte;
}
}
break;
default: // invalid order value
break;
}

}
Expand Down

0 comments on commit b8ae893

Please sign in to comment.