mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2025-01-13 03:07:32 +01: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(){
|
||||
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(){
|
||||
|
Loading…
x
Reference in New Issue
Block a user