Commit dd649b28 by 韩飞虎

非常好用的

parent 4f9b38e3
...@@ -83,8 +83,9 @@ public class PlayActivity extends BaseActivity { ...@@ -83,8 +83,9 @@ public class PlayActivity extends BaseActivity {
String mMinStr = addZeroForNum(mMin + "", 2); String mMinStr = addZeroForNum(mMin + "", 2);
String mSecondStr = addZeroForNum(mSecond + "", 2); String mSecondStr = addZeroForNum(mSecond + "", 2);
typefaceTextView.setText(mHourStr + ":" + mMinStr + ":" + mSecondStr); typefaceTextView.setText(mHourStr + ":" + mMinStr + ":" + mSecondStr);
sendBleData();
} }
sendBleData();
} }
}; };
......
...@@ -141,6 +141,8 @@ public class TrafficLightBean { ...@@ -141,6 +141,8 @@ public class TrafficLightBean {
resData[14]=BitOperator.integerTo1Byte(this.closeSoundNo+this.key); resData[14]=BitOperator.integerTo1Byte(this.closeSoundNo+this.key);
resData[15]=BitOperator.integerTo1Byte(this.trafficLightUpdateSet+this.key); resData[15]=BitOperator.integerTo1Byte(this.trafficLightUpdateSet+this.key);
resData[16]=BitOperator.integerTo1Byte(this.alarm+this.key); resData[16]=BitOperator.integerTo1Byte(this.alarm+this.key);
System.out.println("发送数据为:"+HexStringUtils.toHexString(resData));
return resData; return resData;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment