Skip to content

Commit

Permalink
started V1.3.11
Browse files Browse the repository at this point in the history
fixed #14 - cancel current OBD service on NRC response (to prevent error loop)
  • Loading branch information
fr3ts0n committed Jan 8, 2016
1 parent c509985 commit 31b68e8
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<manifest
package="com.fr3ts0n.ecu.gui.androbd"
xmlns:android="http://schemas.android.com/apk/res/android"
android:versionCode="10309"
android:versionCode="10311"
android:versionName="@string/app_version">

<uses-sdk
Expand Down
2 changes: 1 addition & 1 deletion res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<resources>
<!-- AndrOBD -->
<string name="app_name" translatable="false">AndrOBD</string>
<string name="app_version" translatable="false">V1.3.9</string>
<string name="app_version" translatable="false">V1.3.11</string>
<string name="copyright_fr3ts0n" translatable="false">&#169; 2015 fr3ts0n</string>
<string name="translation_credits">Translation by fr3ts0n</string>
<string name="app_description">Android OBD vehicle diagnostics app for ELM327 bluetooth adapter</string>
Expand Down
7 changes: 7 additions & 0 deletions src/com/fr3ts0n/ecu/gui/androbd/MainActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,7 @@ public void handleMessage(Message msg)
getListView().invalidateViews();
break;

// handle state change in OBD protocol
case MESSAGE_OBD_STATE_CHANGED:
evt = (PropertyChangeEvent) msg.obj;
ElmProt.STAT state = (ElmProt.STAT)evt.getNewValue();
Expand All @@ -399,17 +400,23 @@ public void handleMessage(Message msg)
}
break;

// handle change in number of fault codes
case MESSAGE_OBD_NUMCODES:
evt = (PropertyChangeEvent) msg.obj;
setNumCodes((Integer) evt.getNewValue());
break;

// handle ECU detection event
case MESSAGE_OBD_ECUS:
evt = (PropertyChangeEvent) msg.obj;
selectEcu((Set<Integer>) evt.getNewValue());
break;

// handle negative result code from OBD protocol
case MESSAGE_OBD_NRC:
// reset OBD mode to prevent infinite error loop
setObdService(ObdProt.OBD_SVC_NONE, getText(R.string.obd_error));
// show error dialog ...
evt = (PropertyChangeEvent) msg.obj;
String nrcMessage = (String)evt.getNewValue();
dlgBuilder
Expand Down

0 comments on commit 31b68e8

Please sign in to comment.