Skip to content

Why is sleepcycle uint8_t and not uint16_t ? #757

Answered by cyberman54
JodliDev asked this question in Q&A
Discussion options

You must be logged in to vote

Indeed in early versions there was a restriction in configmanager.cpp enforcing uint8_t values for storage of configurations in NVRAM. Meanwhile configmanager.cpp was reworked, now all configuration values are stored as a whole in a struct in NVRAM. So we can have uint_16t, or even uint64_t to get longer sleep times.

Can you create PR for this and test carefully?

Note: We will need adjustments in rcommand.cpp for set_sleepcycle(), too.

Replies: 4 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@JodliDev
Comment options

Answer selected by JodliDev
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@cyberman54
Comment options

Comment options

You must be logged in to vote
1 reply
@JodliDev
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants