Skip to content

Commit 070789a

Browse files
committed
Readme updated
1 parent 94fa15c commit 070789a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
The compat library may be found on jcenter and Maven Central repository. Add it to your project by adding the following dependency:
88

99
```Groovy
10-
compile 'no.nordicsemi.android:dfu:1.0.1'
10+
compile 'no.nordicsemi.android:dfu:1.0.2'
1111
```
1212

1313
If you use proguard, add the following line to your proguard rules:

documentation/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,8 @@ if (mFileType == DfuService.TYPE_AUTO)
136136
else {
137137
starter.setBinOrHex(mFileType, mFileStreamUri, mFilePath).setInitFile(mInitFileStreamUri, mInitFilePath);
138138
}
139-
starter.start(this, DfuService.class);
139+
final DfuServiceController controller = starter.start(this, DfuService.class);
140+
// You may use the controller to pause, resume or abort the DFU process.
140141
```
141142

142143
Please, see [How to create init packet](https://github.com/NordicSemiconductor/Android-nRF-Connect/tree/master/init%20packet%20handling "Init packet handling") document for more information about the init packet.

0 commit comments

Comments
 (0)