File tree Expand file tree Collapse file tree 2 files changed +2
-23
lines changed
app/src/main/java/com/imgtec/hobbyist Expand file tree Collapse file tree 2 files changed +2
-23
lines changed Original file line number Diff line number Diff line change @@ -26,17 +26,13 @@ public enum Command {
26
26
SETLED2 ("SET LED #2" , "SET LED #2" ),
27
27
SETLED3 ("SET LED #3" , "SET LED #3" ),
28
28
SETLED4 ("SET LED #4" , "SET LED #4" ),
29
- CLEAR_LEDS ( "ACKNOWLEDGE LEDS " , "CLEAR LEDS " ),
30
- REBOOT_SOFTAP ( "REBOOT SOFTAP " , "REBOOT SOFTAP " ),
29
+ SAY_HELLO ( "SAY HELLO " , "SAY HELLO " ),
30
+ GET_STATUS ( "GET STATUS " , "GET STATUS " ),
31
31
REBOOT ("REBOOT" , "REBOOT" ),
32
- ARDUINO_COMMAND ("ARDUINO COMMAND" , "ARDUINO COMMAND" ),
33
32
FACTORY_RESET ("FACTORY RESET" , "" ),
34
33
RENAME_DEVICE ("RENAME DEVICE" , "" );
35
34
36
35
public static String prepareCommand (String display ) {
37
- if (display .contains (CLEAR_LEDS .displayedAs )) {
38
- return display .replace (CLEAR_LEDS .displayedAs , CLEAR_LEDS .command );
39
- }
40
36
return display ;
41
37
}
42
38
Original file line number Diff line number Diff line change @@ -406,23 +406,6 @@ public void onAsyncMessageResponse(MessagingEvent.AsyncMessageResponse response)
406
406
@ Override
407
407
public void onCommandRXMessageReceived (final AsyncMessage msg ) {
408
408
showCommandRXMessage (msg );
409
- handler .post (new Runnable () {
410
- @ Override
411
- public void run () {
412
- if (isCommandMode ) {
413
- String commandText = commandEditText .getText ().toString ();
414
- if (commandText .equalsIgnoreCase (Command .REBOOT .getCommand ()) || commandText .equalsIgnoreCase (Command .GET_STATUS .getCommand ())) {
415
- reactOnRebootCommand ();
416
- }
417
- }
418
- }
419
-
420
- private void reactOnRebootCommand () {
421
- Fragment fragment = SimpleFragmentFactory .createFragment (ConnectedDevicesFragment .TAG , true );
422
- showConnectedDevicesFragmentDialog (fragment );
423
- ((FlowActivity ) activity ).setUIMode (NDMenuMode .Initial );
424
- }
425
- });
426
409
}
427
410
428
411
/**
You can’t perform that action at this time.
0 commit comments