Don't. Just don't. G502 HERO firmware update through G HUB is broken. Waited for over 1.5h with the mouse "updating" and not working, and at the end had to disconnect and reconnect
Amazon.com: Logitech G502 Hero High Performance Wired Gaming Mouse, 25K Sensor, 25,600 DPI, RGB, Adjustable Weights, 11 Programmable Buttons, On-Board Memory, PC/Mac - Black : Video Games
Logitech G502 X PLUS Review - RTINGS.com
New firmware for G502 Hero possibly fixing double clicking : r/LogitechG