projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
216405b
)
altoslib: create eeprom download thread before telling monitor about it
author
Keith Packard
<keithp@keithp.com>
Wed, 18 Dec 2013 21:09:48 +0000
(13:09 -0800)
committer
Keith Packard
<keithp@keithp.com>
Wed, 18 Dec 2013 21:09:48 +0000
(13:09 -0800)
Telling the monitor too early resulted in passing a null thread
handle, which meant that 'cancel' wouldn't ever work.
Signed-off-by: Keith Packard <keithp@keithp.com>
altoslib/AltosEepromDownload.java
patch
|
blob
|
history
diff --git
a/altoslib/AltosEepromDownload.java
b/altoslib/AltosEepromDownload.java
index 542defeefb1e202c81a61019b9cec2bdfdd0fd97..1b04316715809b1e42be683748112761b6e720aa 100644
(file)
--- a/
altoslib/AltosEepromDownload.java
+++ b/
altoslib/AltosEepromDownload.java
@@
-239,6
+239,7
@@
public class AltosEepromDownload implements Runnable {
public void start() {
eeprom_thread = new Thread(this);
+ monitor.set_thread(eeprom_thread);
eeprom_thread.start();
}
@@
-255,7
+256,6
@@
public class AltosEepromDownload implements Runnable {
monitor.set_states(AltosLib.ao_flight_boost, AltosLib.ao_flight_landed);
- monitor.set_thread(eeprom_thread);
monitor.start();
}
}