Skip to content

sleep function - overflow #220

@savnik

Description

@savnik

I'm working on an ATmega1284p with the RN2483A. When putting the device to sleep using the library the module does not go to sleep.
I'm using ttn.sleep(4294967295); where 4294967295 is the maximum value defined in the documentation. The result "sys sleep -1" is send to the RN2483, which results in nothing.
If I use 2147483647 or less it works and sends "sys sleep 2147483647" and i can see the power usage go down.
I guess somewhere there is a overflow in the library but I have not been able to spot where.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions