Public Access
The self-registration mechanism using static initializers can fail with certain compiler/linker settings. Move built-in protocol registration into ensure_initialized() to guarantee all protocols (APC, CyberPower, GoldenMate, Generic) are registered before any protocol lookup occurs. This fixes the issue where Goldenmate detection fails and there are no fallback protocols registered, resulting in "No suitable protocol found for vendor 0x075D".