Fixed pwmd_connect() not setting 'error' to 0 when successful.