|
@@ -346,8 +346,8 @@ public class MainActivity extends SerialPortActivity {
|
|
|
|
|
|
Random random = new Random();
|
|
Random random = new Random();
|
|
final String org = data;
|
|
final String org = data;
|
|
- int i = random.nextInt(200)+1;
|
|
|
|
- int j=random.nextInt(200)+200;
|
|
|
|
|
|
+ int i = random.nextInt(100)+100;
|
|
|
|
+ int j=random.nextInt(100)+200;
|
|
if(!receivedCache.containsKey(data)||receivedCache.containsKey(data)&&receivedCache.get(data)-ctime>60000) {
|
|
if(!receivedCache.containsKey(data)||receivedCache.containsKey(data)&&receivedCache.get(data)-ctime>60000) {
|
|
receivedCache.put(data,ctime);
|
|
receivedCache.put(data,ctime);
|
|
Integer[] taskTime = new Integer[]{i,j};
|
|
Integer[] taskTime = new Integer[]{i,j};
|