The last parameter in the pins_check() routine is declared as "const bool". Add the missing "const" specifier.