Skip to content

Commit 2408ac8

Browse files
Added "longest_allowable_sleep_time" to config.json and added config to SleepHelper constructor call (#16)
* add longest_allowable_sleep_time to config.json and add config to sleephelper constructor * remove safe sleeps used to test function * had to put that space back I removed lol * Bumped PySquared Version --------- Co-authored-by: SSL-Rey <[email protected]>
1 parent 47ae76e commit 2408ac8

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
PYSQUARED_VERSION ?= v2.0.0-alpha-25w17
1+
PYSQUARED_VERSION ?= v2.0.0-alpha-25w20
22
PYSQUARED ?= git+https://github.com/proveskit/pysquared@$(PYSQUARED_VERSION)
33

44
.PHONY: all

config.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
"battery_voltage": 5.2,
5454
"current_draw": 240.5,
5555
"reboot_time": 3600,
56+
"longest_allowable_sleep_time": 600,
5657
"turbo_clock": false,
5758
"radio": {
5859
"license": "",

main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696

9797
c = Satellite(logger, config)
9898

99-
sleep_helper = SleepHelper(c, logger, watchdog)
99+
sleep_helper = SleepHelper(c, logger, watchdog, config)
100100

101101
cdh = CommandDataHandler(config, logger, radio)
102102

0 commit comments

Comments
 (0)