-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change PointPerfect landing page based on platform
Fix #320
- Loading branch information
Showing
1 changed file
with
18 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -329,10 +329,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); | ||
} | ||
|
@@ -342,10 +349,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); | ||
} | ||
|