Skip to content

Dev #92

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

Merged
merged 11 commits into from
Nov 18, 2024
Merged

Dev #92

Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Warn if keep_pc = on and Yocto WDT is configured
  • Loading branch information
jkuusk committed Sep 5, 2024
commit 64c9d82855d1b077bd7e777943df9464524e9c7c
3 changes: 2 additions & 1 deletion release_notes.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
Version 2.2.1: (2024-09-03)
- Ignore auto-generated metadata fields in config_dynamic.ini
- Warn if keep_pc = on and Yocto WDT is configured

Version 2.2.0: (2024-09-03)
- Park to nadir and shut down gracefully 2 minutes before Yocto
Watchdog Timer hard power off
Watchdog Timer hard power off

Version 2.1.0: (2024-08-28)
- Move network traffic from sequecnce.log to hello.log
Expand Down
9 changes: 9 additions & 0 deletions utils/run_service.sh
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,15 @@ if [[ "$bypassYocto" != "yes" ]] ; then
set +e
utils/sync_clock_to_gps.sh -m 5 -l $numeric_verbosity
set -e

# Warn if keep_pc == on and Yocto Watchdog is enabled
if [[ $(command -v YWakeUpMonitor) ]]; then
sleep_countdown=$(YWakeUpMonitor -f '[result]' -r 127.0.0.1 $yoctoPrefix2 get_sleepCountdown)
if ([[ "${testRun:-}" == "yes" ]] && [[ "$keepPcInConf" == "on" ]] && [[ $sleep_countdown -ne 0 ]]) || \
([[ "${testRun:-}" != "yes" ]] && [[ "$keepPc" == "on" ]] && [[ $sleep_countdown -ne 0 ]]); then
log_warning "Shutdown in inhibited by keep_pc = on in config_dynamic.ini, but Yocto watchdog is configured to power off the system!"
fi
fi
fi # bypassYocto != yes

if [[ "$startSequence" == "no" ]] ; then
Expand Down