only check serial input every 10th time

pico-v0.39
alanbjohnston 3 years ago committed by GitHub
parent 99c9602dcf
commit 7cae30bbb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -65,6 +65,8 @@ Adafruit_SI5351 clockgen = Adafruit_SI5351();
unsigned long micros3; unsigned long micros3;
int skip = 0;
//WiFiServer server(port); //WiFiServer server(port);
//WiFiClient client; //WiFiClient client;
WiFiClient net; WiFiClient net;
@ -340,6 +342,7 @@ void loop() {
bool TimerHandler1(struct repeating_timer *t) { bool TimerHandler1(struct repeating_timer *t) {
if (((skip++)%10) == 0)
serial_input(); serial_input();
// check for button press // check for button press

Loading…
Cancel
Save

Powered by TurnKey Linux.