diff --git a/components/ups_hid/protocol_goldenmate.cpp b/components/ups_hid/protocol_goldenmate.cpp index ae59237..7218d47 100644 --- a/components/ups_hid/protocol_goldenmate.cpp +++ b/components/ups_hid/protocol_goldenmate.cpp @@ -15,8 +15,9 @@ REGISTER_UPS_PROTOCOL_FOR_VENDOR( [](UpsHidComponent *p) { return std::make_unique(p); }, "GoldenMate BMS", "GoldenMate / BMS Smart-Battery UPS", 200); +// Register for vendor 0x075D with a UNIQUE macro name identifier REGISTER_UPS_PROTOCOL_FOR_VENDOR( - 0x075D, GoldenMateProtocol, + 0x075D, GoldenMateProtocol_075D, [](UpsHidComponent *p) { return std::make_unique(p); }, "GoldenMate UPS", "GoldenMate UPS Pro", 200);