Skip to content

Commit a800aa1

Browse files
committed
Try to fix scale-adjust-firmware regarding ESP8266 compatibility again
1 parent 1dbd533 commit a800aa1

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

CHANGES.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ CHANGES
99

1010
in-progress
1111
===========
12+
- Try to fix :ref:`scale-adjust-firmware` regarding ESP8266 compatibility again
13+
1214

1315
.. _version-0.15.0:
1416

scale-adjust/ADS1231/scale-adjust-ads1231.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,9 +290,9 @@ void outputStatistic(int decimal) {
290290
// Poll serial port until anything is received
291291
void serial_poll() {
292292
while (!Serial.available()) {
293-
#if ARDUINO_VERSION > 106
294293
// "yield" is not implemented as noop in older Arduino Core releases
295294
// See also: https://stackoverflow.com/questions/34497758/what-is-the-secret-of-the-arduino-yieldfunction/34498165#34498165
295+
#if !(ARDUINO_VERSION <= 106) || ARDUINO >= 10605 || defined(ESP8266)
296296
yield();
297297
#endif
298298
};

scale-adjust/HX711/scale-adjust-hx711.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,9 +278,9 @@ void outputStatistic(int decimal) {
278278
// Poll serial port until anything is received
279279
void serial_poll() {
280280
while (!Serial.available()) {
281-
#if ARDUINO_VERSION > 106
282281
// "yield" is not implemented as noop in older Arduino Core releases
283282
// See also: https://stackoverflow.com/questions/34497758/what-is-the-secret-of-the-arduino-yieldfunction/34498165#34498165
283+
#if !(ARDUINO_VERSION <= 106) || ARDUINO >= 10605 || defined(ESP8266)
284284
yield();
285285
#endif
286286
};

0 commit comments

Comments
 (0)