Skip to content

Commit

Permalink
Merge pull request #12 from ATNF/master
Browse files Browse the repository at this point in the history
MONICA-74 : Fixes additional reverse conversion of each array value
  • Loading branch information
sahoyle authored Apr 27, 2022
2 parents 913e51e + b8ae893 commit 48c673e
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 48c673e

Please sign in to comment.