Function to return custom Data Type

Yep, done that - although it was not expressed as clearly as it could have been:

The new type is declared in a library.h file and the include is at the beginning of the sketch so I don't think it's a case of the new type not being picked up

Ric