libogc icon indicating copy to clipboard operation
libogc copied to clipboard

allow retries of if_config

Open bendmorris opened this issue 3 years ago • 4 comments

Currently if you call if_config and it returns an error subsequent calls will immediately return 0 and won't repeat any initialization that failed.

This change keeps track of what's been initialized so that initialization can be resumed.

bendmorris avatar Aug 10 '20 02:08 bendmorris

How often are you seeing failures and at what point does it usually fail?

WinterMute avatar Aug 10 '20 15:08 WinterMute

I was seeing failure with -1 when the bba wasn't connected to anything, as you might expect. Would be nice to be able to warn and retry in that case.

bendmorris avatar Aug 10 '20 16:08 bendmorris

That'll do it :P

How far in the intialisation does it get without a cable?

WinterMute avatar Aug 10 '20 17:08 WinterMute

Didn't check, but from the return I guess it either failed on MQ_Init or netif_add.

bendmorris avatar Aug 10 '20 18:08 bendmorris