Arduino Sleep Node

Hello All, I’m new to XOD and have an issue with nkrkv’s “sleep-until-switch” (on UNO & NANO). I have seen several posts with the same issue but no recent solutions. This node is exactly what I need but errors in compiling. Could anybody direct me to the issue here, any help would be greatly appreciated. Comp errors below

C:\Users\Me\AppData\Local\Temp\xod_temp_sketchbookUWNmoo\xod_1643866566438_sketch\xod_1643866566438_sketch.ino: In instantiation of ‘void xod::nkrkv__avr_sleep__sleep_until_switch::Node<constant_input_WAKE>::evaluate(xod::nkrkv__avr_sleep__sleep_until_switch::Node<constant_input_WAKE>::Context) [with unsigned char constant_input_WAKE = 2; xod::nkrkv__avr_sleep__sleep_until_switch::Node<constant_input_WAKE>::Context = xod::nkrkv__avr_sleep__sleep_until_switch::Node<2>::ContextObject*]’:
C:\Users\Me\AppData\Local\Temp\xod_temp_sketchbookUWNmoo\xod_1643866566438_sketch\xod_1643866566438_sketch.ino:5186:37: required from here
C:\Users\Me\AppData\Local\Temp\xod_temp_sketchbookUWNmoo\xod_1643866566438_sketch\xod_1643866566438_sketch.ino:2948:24: error: invalid use of non-static member function ‘void xod::nkrkv__avr_sleep__sleep_until_switch::Node<constant_input_WAKE>::wakeISR() [with unsigned char constant_input_WAKE = 2]’
attachInterrupt(g_interruptNum, wakeISR, CHANGE);
C:\Users\Me\AppData\Local\Temp\xod_temp_sketchbookUWNmoo\xod_1643866566438_sketch\xod_1643866566438_sketch.ino:2915:10: note: declared here
void wakeISR() {

Error during build: exit status 1
Compilation failed
Command Process exited with code 1
The generated C++ code contains errors. It can be due to a bad node implementation or if your board is not compatible with XOD runtime code. The original compiler error message is above. Fix C++ errors to continue. If you believe it is a bug, report the problem to XOD developers.

Try wayland/avr-sleep — XOD

Excellent!! works like a charm, thanks for the help.

You’re welcome. Thanks for the feedback.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.