make cli method public

This commit is contained in:
fros4943 2010-03-02 13:22:29 +00:00
parent 1025e7337c
commit d3b44510f8

View file

@ -26,7 +26,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE. * SUCH DAMAGE.
* *
* $Id: MspMote.java,v 1.42 2010/02/21 21:51:50 fros4943 Exp $ * $Id: MspMote.java,v 1.43 2010/03/02 13:22:29 fros4943 Exp $
*/ */
package se.sics.cooja.mspmote; package se.sics.cooja.mspmote;
@ -263,6 +263,7 @@ public abstract class MspMote extends AbstractEmulatedMote implements Mote, Watc
int[] memory = myCpu.getMemory(); int[] memory = myCpu.getMemory();
logger.info("Loading ELF from: " + fileELF.getAbsolutePath()); logger.info("Loading ELF from: " + fileELF.getAbsolutePath());
GUI.setProgressMessage("Loading " + fileELF.getName());
if (GUI.isVisualizedInApplet()) { if (GUI.isVisualizedInApplet()) {
myELFModule = node.loadFirmware(new URL(GUI.getAppletCodeBase(), fileELF.getName()), memory); myELFModule = node.loadFirmware(new URL(GUI.getAppletCodeBase(), fileELF.getName()), memory);
} else { } else {
@ -373,7 +374,7 @@ public abstract class MspMote extends AbstractEmulatedMote implements Mote, Watc
}*/ }*/
} }
private String sendCLICommandAndPrint(String cmd) { public String sendCLICommandAndPrint(String cmd) {
final StringBuilder sb = new StringBuilder(); final StringBuilder sb = new StringBuilder();
LineListener tmp = new LineListener() { LineListener tmp = new LineListener() {
public void lineRead(String line) { public void lineRead(String line) {