Skip to content

Commit

Permalink
Merge pull request #59 from hiveeyes/fix-yield
Browse files Browse the repository at this point in the history
Define "yield" as noop for older Arduino Core releases.
  • Loading branch information
bogde authored Jan 11, 2017
2 parents 5746906 + e943475 commit e80de1c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions HX711.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
#include <Arduino.h>
#include <HX711.h>

#if ARDUINO_VERSION <= 106
// "yield" is not implemented as noop in older Arduino Core releases, so let's define it.
// See also: https://stackoverflow.com/questions/34497758/what-is-the-secret-of-the-arduino-yieldfunction/34498165#34498165
void yield(void) {};
#endif

HX711::HX711(byte dout, byte pd_sck, byte gain) {
begin(dout, pd_sck, gain);
}
Expand Down

0 comments on commit e80de1c

Please sign in to comment.