mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-08-28 01:55:40 +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…
Reference in New Issue
Block a user