Skip to content
This repository has been archived by the owner on May 11, 2021. It is now read-only.

Commit

Permalink
Display software version and prepare for v0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
thorikawa committed Dec 22, 2013
1 parent f5935ac commit 14ce81b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

<groupId>com.polysfactory.glassremote</groupId>
<artifactId>glass-remote</artifactId>
<version>0.5.0</version>
<version>0.6.0</version>

<name>GlassRemote</name>
<url>https://github.com/thorikawa/GlassRemote</url>
Expand Down Expand Up @@ -56,7 +56,7 @@
<dependency>
<groupId>com.polysfactory.lib.glass.bluetooth</groupId>
<artifactId>glass-bluetooth</artifactId>
<version>0.1.1</version>
<version>0.1.2</version>
</dependency>
</dependencies>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ public void servicesDiscovered(int transID, ServiceRecord[] servRecord) {
glassInfoRequest.requestBatteryLevel = true;
glassInfoRequest.requestStorageInfo = true;
glassInfoRequest.requestDeviceName = true;
glassInfoRequest.requestSoftwareVersion = true;
envelope2.glassInfoRequestC2G = glassInfoRequest;
write(envelope2);

Expand Down
4 changes: 3 additions & 1 deletion src/main/java/com/polysfactory/glassremote/ui/MainFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,9 @@ public void run() {
GlassInfoResponse response = envelope.glassInfoResponseG2C;
String info = "";
info += "Device name: " + response.deviceName;
info += " Battery: " + response.batteryLevel + "%\n";
info += " Battery: " + response.batteryLevel + "%";
info += " Software: " + response.softwareVersion;
info += "\n";
info += "Storage: " + response.externalStorageAvailableBytes + "/" + response.externalStorageTotalBytes
+ " bytes available";
mInfoPanel.setText(info);
Expand Down

0 comments on commit 14ce81b

Please sign in to comment.