Skip to content

Commit 20ae5c6

Browse files
committed
Change PointPerfect landing page based on platform
Fix #320
1 parent 7458a64 commit 20ae5c6

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

Firmware/RTK_Everywhere/menuPP.ino

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -329,10 +329,17 @@ bool pointperfectProvisionDevice()
329329
snprintf(hardwareID, sizeof(hardwareID), "%02X%02X%02X%02X%02X%02X%02X", btMACAddress[0], btMACAddress[1],
330330
btMACAddress[2], btMACAddress[3], btMACAddress[4], btMACAddress[5], productVariant);
331331

332+
char landingPageUrl[200] = "";
333+
if (productVariant == RTK_TORCH)
334+
snprintf(landingPageUrl, sizeof(landingPageUrl),
335+
"or goto https://www.sparkfun.com/rtk_torch_registration ");
336+
else
337+
systemPrintln("pointperfectProvisionDevice() Platform missing landing page");
338+
332339
systemPrintf("This device has been deactivated. Please contact "
333-
"[email protected] or goto https://www.sparkfun.com/pointperfect to renew the PointPerfect "
340+
"[email protected] %sto renew the PointPerfect "
334341
"subscription. Please reference device ID: %s\r\n",
335-
hardwareID);
342+
landingPageUrl, hardwareID);
336343

337344
displayAccountExpired(5000);
338345
}
@@ -342,10 +349,17 @@ bool pointperfectProvisionDevice()
342349
snprintf(hardwareID, sizeof(hardwareID), "%02X%02X%02X%02X%02X%02X%02X", btMACAddress[0], btMACAddress[1],
343350
btMACAddress[2], btMACAddress[3], btMACAddress[4], btMACAddress[5], productVariant);
344351

352+
char landingPageUrl[200] = "";
353+
if (productVariant == RTK_TORCH)
354+
snprintf(landingPageUrl, sizeof(landingPageUrl),
355+
"or goto https://www.sparkfun.com/rtk_torch_registration ");
356+
else
357+
systemPrintln("pointperfectProvisionDevice() Platform missing landing page");
358+
345359
systemPrintf("This device is not whitelisted. Please contact "
346-
"[email protected] or goto https://www.sparkfun.com/pointperfect to get your subscription "
360+
"[email protected] %sto get the subscription "
347361
"activated. Please reference device ID: %s\r\n",
348-
hardwareID);
362+
landingPageUrl, hardwareID);
349363

350364
displayNotListed(5000);
351365
}

0 commit comments

Comments
 (0)