feat(color): add location marker to GPS Model Locator QR code (#7273)

This commit is contained in:
julian-boetzel
2026-05-06 16:08:48 +10:00
committed by GitHub
parent 5b5a0b3e1b
commit 2fb4faa91d
@@ -68,7 +68,7 @@ void RadioGpsTool::refresh()
if (gpsSensorID >= 0) {
static TelemetryItem& gpsItem = telemetryItems[gpsSensorID];
char gps_uri[64];
snprintf(gps_uri, sizeof(gps_uri), "geo:%f,%f", (float)gpsItem.gps.latitude / 1000000, (float)gpsItem.gps.longitude / 1000000);
snprintf(gps_uri, sizeof(gps_uri), "geo:0,0?q=%f,%f", (float)gpsItem.gps.latitude / 1000000, (float)gpsItem.gps.longitude / 1000000);
gpsQR->setData(gps_uri);
gpsQR->show();
gpsLabel->setText(getGPSSensorValue(gpsItem, 0));