Skip to content

Commit

Permalink
md v4 support
Browse files Browse the repository at this point in the history
  • Loading branch information
DantSu committed Jan 6, 2024
1 parent 7560ca5 commit af2724e
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<parent>
<artifactId>studio-parent</artifactId>
<groupId>studio</groupId>
<version>0.5.1</version>
<version>0.5.2</version>
</parent>

<artifactId>studio-core</artifactId>
Expand Down
2 changes: 1 addition & 1 deletion driver/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<parent>
<artifactId>studio-parent</artifactId>
<groupId>studio</groupId>
<version>0.5.1</version>
<version>0.5.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ public CompletionStage<FsDeviceInfos> getDeviceInfos() {
short mdVersion = DeviceUtils.readLittleEndianShort(is);
LOGGER.trace("Device metadata format version: {}", mdVersion);

if (mdVersion >= 1 && mdVersion <= 3) {
return this.getDeviceInfosMeta1to3(infos, is);
if (mdVersion >= 1 && mdVersion <= 4) {
return this.getDeviceInfosMeta1to4(infos, is);
} else if (mdVersion == 6) {
return this.getDeviceInfosMeta6(infos, is);
} else {
Expand All @@ -150,7 +150,7 @@ public CompletionStage<FsDeviceInfos> getDeviceInfos() {
}
}

public CompletionStage<FsDeviceInfos> getDeviceInfosMeta1to3(FsDeviceInfos infos, DataInputStream is) throws IOException {
public CompletionStage<FsDeviceInfos> getDeviceInfosMeta1to4(FsDeviceInfos infos, DataInputStream is) throws IOException {
// Firmware version
is.skipBytes(4);
short major = DeviceUtils.readLittleEndianShort(is);
Expand Down
2 changes: 1 addition & 1 deletion metadata/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<parent>
<artifactId>studio-parent</artifactId>
<groupId>studio</groupId>
<version>0.5.1</version>
<version>0.5.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<groupId>studio</groupId>
<artifactId>studio-parent</artifactId>
<version>0.5.1</version>
<version>0.5.2</version>

<packaging>pom</packaging>

Expand Down
2 changes: 1 addition & 1 deletion web-ui/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<parent>
<artifactId>studio-parent</artifactId>
<groupId>studio</groupId>
<version>0.5.1</version>
<version>0.5.2</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down

0 comments on commit af2724e

Please sign in to comment.