Problem with passing a struct pointer

Try bool.
Or add Arduino.h into your include file.