Make sitTime <= moveTime possible

pull/392/head
v1nc 2020-05-07 20:36:32 +02:00 committed by GitHub
parent 6f77f4dcd2
commit e871a97b7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -26,6 +26,7 @@ function print_message(){
g.clear(); g.clear();
g.setColor(0xF800); g.setColor(0xF800);
g.drawString("sitting is dangerous!", g.getWidth()/2, g.getHeight()/2); g.drawString("sitting is dangerous!", g.getWidth()/2, g.getHeight()/2);
setTimeout(remind,settings.sitTime * 60000);
} }
//init graphics //init graphics
require("Font8x12").add(Graphics); require("Font8x12").add(Graphics);
@ -34,5 +35,4 @@ g.setFontAlign(0,0);
g.flip(); g.flip();
print_message(); print_message();
setInterval(remind,settings.sitTime * 60000);