Skip to content

Commit aa811bf

Browse files
ble_fota: Cleaning
Signed-off-by: Giuliano Franchetto <[email protected]>
1 parent a008bde commit aa811bf

File tree

4 files changed

+6
-17
lines changed

4 files changed

+6
-17
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ local.properties
99

1010
# Gradle generated files
1111
.gradle/
12-
gradle/*
1312

1413
# Signing files
1514
.signing/

gradle/wrapper/gradle-wrapper.jar

52.4 KB
Binary file not shown.
+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#Tue Feb 13 14:01:39 CET 2018
2+
distributionBase=GRADLE_USER_HOME
3+
distributionPath=wrapper/dists
4+
zipStoreBase=GRADLE_USER_HOME
5+
zipStorePath=wrapper/dists
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip

mcumgr-android-lib/src/main/java/io/runtime/mcumgr/mgrs/ImageManager.java

-16
Original file line numberDiff line numberDiff line change
@@ -452,22 +452,6 @@ public interface ImageUploadCallback {
452452

453453
}
454454

455-
//******************************************************************
456-
// Utilities
457-
//******************************************************************
458-
459-
/* NIET!!!
460-
public static byte[] getHashFromImage(byte[] imageData) {
461-
if (imageData.length < IMG_HASH_LEN) {
462-
throw new IllegalArgumentException("Image data is too short to contain a hash.");
463-
}
464-
int offset = imageData.length - IMG_HASH_LEN;
465-
byte[] hash = new byte[IMG_HASH_LEN];
466-
System.arraycopy(imageData, offset, hash, 0, IMG_HASH_LEN);
467-
468-
return hash;
469-
}*/
470-
471455
public static byte[] getHashFromImage(byte[] data) throws McuMgrException {
472456
McuMgrImageTlvParser parser = new McuMgrImageTlvParser(data);
473457

0 commit comments

Comments
 (0)