Merge pull request #3882 from spycat111/master

Replace non-ASCII dashes in code & clarify patent/licensing terms for non-commercial use in README
master
Gordon Williams 2025-06-16 09:42:56 +01:00 committed by GitHub
commit 12f7edd99c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 3 deletions

View File

@ -113,6 +113,8 @@ Unless otherwise stated, this project is released under the MIT license.
Use of the patented method may be subject to licensing or permission. Use of the patented method may be subject to licensing or permission.
For inquiries, contact the author. For inquiries, contact the author.
Note: The patented method does not require licensing for non-commercial, research, educational, or personal use within the open-source community. Commercial or broad distribution beyond these uses may require permission or licensing. For such use cases, please contact the author.
### **Summary** ### **Summary**
The Circadian Rhythm Clock transforms the Bangle.js 2 into a **bio-aware, personalized circadian dashboard**, guiding users toward better alignment with their biological clock and modern life. The Circadian Rhythm Clock transforms the Bangle.js 2 into a **bio-aware, personalized circadian dashboard**, guiding users toward better alignment with their biological clock and modern life.

View File

@ -610,7 +610,7 @@ function calibrateBT() {
Bangle.setUI(uiOpts); Bangle.setUI(uiOpts);
}); });
})(d); })(d);
m["" + d + "h"] = (() => () => { m["-" + d + "h"] = (() => () => {
S.phaseOffset -= d; S.phaseOffset -= d;
saveSettings(); saveSettings();
E.showAlert("Offset now: " + (S.phaseOffset>=0? "+"+S.phaseOffset : S.phaseOffset) + "h").then(() => { E.showAlert("Offset now: " + (S.phaseOffset>=0? "+"+S.phaseOffset : S.phaseOffset) + "h").then(() => {
@ -711,7 +711,7 @@ function setBioTimeReference() {
E.showMenu(m); E.showMenu(m);
function promptRefTime() { function promptRefTime() {
E.showPrompt("Hour (023)?").then(h => { E.showPrompt("Hour (0-23)?").then(h => {
if (h===undefined || h<0 || h>23) { if (h===undefined || h<0 || h>23) {
E.showAlert("Invalid hour").then(() => { E.showAlert("Invalid hour").then(() => {
drawClock(); drawClock();
@ -720,7 +720,7 @@ function setBioTimeReference() {
return; return;
} }
S.bioTimeRefHour = h; S.bioTimeRefHour = h;
E.showPrompt("Minute (059)?").then(m => { E.showPrompt("Minute (0-59)?").then(m => {
if (m===undefined || m<0 || m>59) { if (m===undefined || m<0 || m>59) {
E.showAlert("Invalid minute").then(() => { E.showAlert("Invalid minute").then(() => {
drawClock(); drawClock();