Skip to content

Commit 8b2e773

Browse files
author
James Foster
committed
Fix compile error in sample code: PinHistory does not understand size(), but does understand queueSize().
1 parent bff396c commit 8b2e773

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

REFERENCE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ unittest(pin_history)
311311
// we expect 6 values in that queue (5 that we set plus one
312312
// initial value), which we'll hard-code here for convenience.
313313
// (we'll actually assert those 6 values in the next block)
314-
assertEqual(6, state->digitalPin[1].size());
314+
assertEqual(6, state->digitalPin[1].queueSize));
315315
bool expected[6] = {LOW, HIGH, LOW, LOW, HIGH, HIGH};
316316
bool actual[6];
317317

0 commit comments

Comments
 (0)