Skip to content

Commit

Permalink
Change PointPerfect landing page based on platform
Browse files Browse the repository at this point in the history
Fix #320
  • Loading branch information
nseidle committed May 23, 2024
1 parent cd36b92 commit 023a4bd
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions Firmware/RTK_Everywhere/menuPP.ino
Original file line number Diff line number Diff line change
Expand Up @@ -331,10 +331,17 @@ bool pointperfectProvisionDevice()
snprintf(hardwareID, sizeof(hardwareID), "%02X%02X%02X%02X%02X%02X%02X", btMACAddress[0], btMACAddress[1],
btMACAddress[2], btMACAddress[3], btMACAddress[4], btMACAddress[5], productVariant);

char landingPageUrl[200] = "";
if (productVariant == RTK_TORCH)
snprintf(landingPageUrl, sizeof(landingPageUrl),
"or goto https://www.sparkfun.com/rtk_torch_registration ");
else
systemPrintln("pointperfectProvisionDevice() Platform missing landing page");

systemPrintf("This device has been deactivated. Please contact "
"[email protected] or goto https://www.sparkfun.com/pointperfect to renew the PointPerfect "
"[email protected] %sto renew the PointPerfect "
"subscription. Please reference device ID: %s\r\n",
hardwareID);
landingPageUrl, hardwareID);

displayAccountExpired(5000);
}
Expand All @@ -344,10 +351,17 @@ bool pointperfectProvisionDevice()
snprintf(hardwareID, sizeof(hardwareID), "%02X%02X%02X%02X%02X%02X%02X", btMACAddress[0], btMACAddress[1],
btMACAddress[2], btMACAddress[3], btMACAddress[4], btMACAddress[5], productVariant);

char landingPageUrl[200] = "";
if (productVariant == RTK_TORCH)
snprintf(landingPageUrl, sizeof(landingPageUrl),
"or goto https://www.sparkfun.com/rtk_torch_registration ");
else
systemPrintln("pointperfectProvisionDevice() Platform missing landing page");

systemPrintf("This device is not whitelisted. Please contact "
"[email protected] or goto https://www.sparkfun.com/pointperfect to get your subscription "
"[email protected] %sto get the subscription "
"activated. Please reference device ID: %s\r\n",
hardwareID);
landingPageUrl, hardwareID);

displayNotListed(5000);
}
Expand Down

0 comments on commit 023a4bd

Please sign in to comment.