Skip to content

Commit 54507a1

Browse files
committed
New firmware files from SDK 9.0 added.
1 parent 57bb546 commit 54507a1

File tree

4 files changed

+14
-3
lines changed

4 files changed

+14
-3
lines changed

app/src/main/java/no/nordicsemi/android/nrftoolbox/dfu/DfuActivity.java

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public class DfuActivity extends AppCompatActivity implements LoaderCallbacks<Cu
8686
private static final String TAG = "DfuActivity";
8787

8888
private static final String PREFS_SAMPLES_VERSION = "no.nordicsemi.android.nrftoolbox.dfu.PREFS_SAMPLES_VERSION";
89-
private static final int CURRENT_SAMPLES_VERSION = 3;
89+
private static final int CURRENT_SAMPLES_VERSION = 4;
9090

9191
private static final String PREFS_DEVICE_NAME = "no.nordicsemi.android.nrftoolbox.dfu.PREFS_DEVICE_NAME";
9292
private static final String PREFS_FILE_NAME = "no.nordicsemi.android.nrftoolbox.dfu.PREFS_FILE_NAME";
@@ -414,9 +414,20 @@ private void ensureSamplesExist() {
414414
copyRawResource(R.raw.ble_app_hrs_dfu_s110_v7_1_0_ext_init, f);
415415
oldCopied = true;
416416
}
417-
f = new File(pca10028, "ble_app_hrs_dfu_s110_v8_0_0.zip");
417+
new File(root, "ble_app_hrs_dfu_s110_v8_0_0.zip").delete(); // name changed
418+
f = new File(pca10028, "ble_app_hrs_dfu_s110_v8_0_0_sdk_v8_0.zip");
418419
if (!f.exists()) {
419-
copyRawResource(R.raw.ble_app_hrs_dfu_s110_v8_0_0, f);
420+
copyRawResource(R.raw.ble_app_hrs_dfu_s110_v8_0_0_sdk_v8_0, f);
421+
newCopied = true;
422+
}
423+
f = new File(pca10028, "ble_app_hrs_dfu_s110_v8_0_0_sdk_v9_0.zip");
424+
if (!f.exists()) {
425+
copyRawResource(R.raw.ble_app_hrs_dfu_s110_v8_0_0_sdk_v9_0, f);
426+
newCopied = true;
427+
}
428+
f = new File(pca10028, "ble_app_hrs_dfu_all_in_one_sdk_v9_0.zip");
429+
if (!f.exists()) {
430+
copyRawResource(R.raw.ble_app_hrs_dfu_all_in_one_sdk_v9_0, f);
420431
newCopied = true;
421432
}
422433

121 KB
Binary file not shown.
File renamed without changes.
21.8 KB
Binary file not shown.

0 commit comments

Comments
 (0)