Skip to content

Commit 30f1b4e

Browse files
android: Add case insensitive filename check
1 parent bac54fb commit 30f1b4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

android/src/main/java/com/pilloxa/dfu/RNNordicDfuModule.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public void startDFU(String address, String name, String filePath, ReadableMap o
4141
starter.setPacketsReceiptNotificationsValue(1);
4242
starter.setUnsafeExperimentalButtonlessServiceInSecureDfuEnabled(true);
4343

44-
if (filePath.endsWith(".bin") || filePath.endsWith(".hex")) {
44+
if (filePath.toLowerCase().endsWith(".bin") || filePath.toLowerCase().endsWith(".hex")) {
4545
starter.setBinOrHex(DfuBaseService.TYPE_APPLICATION, filePath).setInitFile(null, null);
4646
} else {
4747
starter.setZip(filePath);

0 commit comments

Comments
 (0)