1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-07-24 15:43:46 +02:00

UM25: removed lambda expression

This commit is contained in:
Daniel Dakhno 2021-03-07 01:06:34 +01:00 committed by Andreas Shimokawa
parent 6b4cec5996
commit b7b45e199d

View File

@ -69,7 +69,12 @@ public class UM25Support extends UM25BaseSupport {
private void startLoop(){
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(){