-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automatic DST support #3072
Automatic DST support #3072
Changes from 10 commits
eae76b9
dd19387
37c3280
d861ee8
6ad6cc3
48b5d0a
3e23e62
de00fc5
bd17c41
3a34ba8
baa9b4d
5078fe3
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# Configuration for probot-stale - https://github.com/probot/stale | ||
|
||
# Number of days of inactivity before an Issue or Pull Request becomes stale | ||
daysUntilStale: 60 | ||
|
||
# Number of days of inactivity before a stale Issue or Pull Request is closed. | ||
# Set to false to disable. If disabled, issues still need to be closed manually, but will remain marked as stale. | ||
daysUntilClose: 14 | ||
|
||
# Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable | ||
exemptLabels: | ||
- BUG | ||
- Feature Request | ||
- Pinned | ||
|
||
# Set to true to ignore issues in a project (defaults to false) | ||
exemptProjects: false | ||
|
||
# Set to true to ignore issues in a milestone (defaults to false) | ||
exemptMilestones: true | ||
|
||
# Label to use when marking as stale | ||
staleLabel: Inactive | ||
|
||
# Comment to post when marking as stale. Set to `false` to disable | ||
markComment: > | ||
This issue / pull request has been automatically marked as stale because it | ||
has not had any activity in 60 days. The resources of the INAV team are limited, | ||
and so we are asking for your help. | ||
|
||
This issue / pull request will be closed if no further activity occurs within two weeks. | ||
|
||
|
||
# Comment to post when removing the stale label. | ||
# unmarkComment: > | ||
# Your comment here. | ||
|
||
# Comment to post when closing a stale Issue or Pull Request. | ||
closeComment: > | ||
Automatically closing as inactive. | ||
|
||
# Limit the number of actions per hour, from 1-30. Default is 30 | ||
limitPerRun: 30 | ||
|
||
# Limit to only `issues` or `pulls` | ||
# only: issues | ||
|
||
# Optionally, specify configuration settings that are specific to just 'issues' or 'pulls': | ||
# pulls: | ||
# daysUntilStale: 30 | ||
# markComment: > | ||
# This pull request has been automatically marked as stale because it has not had | ||
# recent activity. It will be closed if no further activity occurs. Thank you | ||
# for your contributions. | ||
|
||
# issues: | ||
# exemptLabels: | ||
# - confirmed |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,8 +39,15 @@ typedef uint32_t timeUs_t; | |
|
||
static inline timeDelta_t cmpTimeUs(timeUs_t a, timeUs_t b) { return (timeDelta_t)(a - b); } | ||
|
||
typedef enum { | ||
TZ_AUTO_DST_OFF, | ||
TZ_AUTO_DST_EU, | ||
TZ_AUTO_DST_USA, | ||
} tz_automatic_dst_e; | ||
|
||
typedef struct timeConfig_s { | ||
int16_t tz_offset; // Offset from UTC in minutes, might be positive or negative | ||
uint8_t tz_automatic_dst; // Automatically handle DST or ignore it, values come from tz_automatic_dst_e | ||
} timeConfig_t; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Rather than 2 variables, use just one uint8_t named |
||
|
||
PG_DECLARE(timeConfig_t, timeConfig); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You're adding fields to the parameter group. Please also increase version number in the declaration
PG_REGISTER_WITH_RESET_TEMPLATE
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rookie mistake, my bad.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No worries, I keep forgetting to do this myself 😉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any more work left to be done on this? Sorry to be bothering, it seems that I cannot manually mark this request as solved.