projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altosdroid: Can only use message once
[fw/altos]
/
altosdroid
/
src
/
org
/
altusmetrum
/
AltosDroid
/
TelemetryService.java
diff --git
a/altosdroid/src/org/altusmetrum/AltosDroid/TelemetryService.java
b/altosdroid/src/org/altusmetrum/AltosDroid/TelemetryService.java
index 6edc20c72ffc0f489a050060af738c411f898bef..63592e2999d26e2ae09b66bd5e4a59b7cb1df32a 100644
(file)
--- a/
altosdroid/src/org/altusmetrum/AltosDroid/TelemetryService.java
+++ b/
altosdroid/src/org/altusmetrum/AltosDroid/TelemetryService.java
@@
-248,7
+248,7
@@
public class TelemetryService extends Service implements LocationListener {
/* On connect, send the current state to the new client
*/
/* On connect, send the current state to the new client
*/
- send_to_client(client
, message()
);
+ send_to_client(client);
/* If we've got an address from a previous session, then
* go ahead and try to reconnect to the device
/* If we've got an address from a previous session, then
* go ahead and try to reconnect to the device
@@
-275,7
+275,8
@@
public class TelemetryService extends Service implements LocationListener {
}
}
}
}
- private void send_to_client(Messenger client, Message m) {
+ private void send_to_client(Messenger client) {
+ Message m = message();
try {
client.send(m);
} catch (RemoteException e) {
try {
client.send(m);
} catch (RemoteException e) {
@@
-285,9
+286,8
@@
public class TelemetryService extends Service implements LocationListener {
}
private void send_to_clients() {
}
private void send_to_clients() {
- Message m = message();
for (Messenger client : clients)
for (Messenger client : clients)
- send_to_client(client
, m
);
+ send_to_client(client);
}
private void disconnect(boolean notify) {
}
private void disconnect(boolean notify) {