mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-04-02 12:30:54 +02:00
UM25: removed lambda expression
This commit is contained in:
parent
6b4cec5996
commit
b7b45e199d
@ -69,7 +69,12 @@ public class UM25Support extends UM25BaseSupport {
|
|||||||
|
|
||||||
private void startLoop(){
|
private void startLoop(){
|
||||||
ScheduledThreadPoolExecutor executor = new ScheduledThreadPoolExecutor(1);
|
ScheduledThreadPoolExecutor executor = new ScheduledThreadPoolExecutor(1);
|
||||||
executor.scheduleWithFixedDelay(this::sendReadCommand, 0, LOOP_DELAY, TimeUnit.MILLISECONDS);
|
executor.scheduleWithFixedDelay(new Runnable() {
|
||||||
|
@Override
|
||||||
|
public void run() {
|
||||||
|
sendReadCommand();
|
||||||
|
}
|
||||||
|
}, 0, LOOP_DELAY, TimeUnit.MILLISECONDS);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void sendReadCommand(){
|
private void sendReadCommand(){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user