Skip to content

Commit

Permalink
add some comment
Browse files Browse the repository at this point in the history
  • Loading branch information
skyforcetw committed Mar 3, 2019
1 parent d5065df commit e624c1b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,9 @@ private void SendHud2(char[] pBuf) {
}


public void SetTime(int nH, int nM) {
SetTime(nH, nM, false, false, true, false);
}
// public void SetTime(int nH, int nM) {
// SetTime(nH, nM, false, false, true, false);
// }

public void SetTime(int nH, int nM, boolean bH, boolean bFlag) {
SetTime(nH, nM, bFlag, false, true, bH);
Expand All @@ -133,8 +133,10 @@ public void SetTime(int nH, int nM, boolean bH) {
public void SetTime(int nH, int nM, boolean bFlag, boolean bTraffic, boolean bColon, boolean bH) {
char arr[] = {(char) 0x05,
bTraffic ? (char) 0xff : (char) 0x00,
Digit(nH / 10), Digit(nH), bColon ? (char) 0xff : (char) 0x00,
Digit(nM / 10), Digit(nM), bH ? (char) 0xff : (char) 0x00,
Digit(nH / 10), Digit(nH), // hour
bColon ? (char) 0xff : (char) 0x00, // :
Digit(nM / 10), Digit(nM), //minute
bH ? (char) 0xff : (char) 0x00, // post-fix 'h'
bFlag ? (char) 0xff : (char) 0x00};
SendHud2(arr);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -438,8 +438,6 @@ public void buttonOnClicked(View view) {
break;

case R.id.switchShowSpeed:
// case R.id.switchNavShowSpeed:
// case R.id.switchIdleShowSpeed:
final boolean canShowSpeed = showSpeed(((Switch) view).isChecked());
if (!canShowSpeed) {
((Switch) view).setChecked(false);
Expand Down Expand Up @@ -492,6 +490,7 @@ private boolean showSpeed(final boolean doShowSpeed) {
unbindLocationService();
}
if (null != garminHud) {
//clear according to navigate status
garminHud.ClearSpeedandWarning();
garminHud.ClearDistance();
}
Expand Down
4 changes: 2 additions & 2 deletions GoogleMaps_HUD/gmaps_hud/version.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#Mon Mar 04 00:31:19 CST 2019
#Mon Mar 04 00:44:46 CST 2019
VERSION_NAME=0.3.1
VERSION_CODE=1269
VERSION_CODE=1270

0 comments on commit e624c1b

Please sign in to comment.