# Error with digital-write

**URL:** <https://forum.xod.io/t/error-with-digital-write/4466>\
**Category:** XOD Programming Questions\
**Created:** [September 27, 2020, 7:08am UTC](https://forum.xod.io/t/error-with-digital-write/4466 "2020-09-27T07:08:17Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![cesars](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@cesars](https://forum.xod.io/u/cesars)\
**Post date:** [September 27, 2020, 7:08am UTC](https://forum.xod.io/t/error-with-digital-write/4466/1 "2020-09-27T07:08:17Z")

</div>

This simple patch gives me an error.

![image](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/b/ba185a9b9c904510fd1d8ae0e718499317cba5ad.png)

In order to compile I have to comment this line in `digital-write` node

```auto
//#pragma XOD evaluate_on_pin disable

```

error:

```auto
Begin compiling code for the board Arduino Uno 📦

C:\Users\Cesar\AppData\Local\Temp\xod_temp_sketchbook98XhiA\xod_1601190379205_sketch\xod_1601190379205_sketch.ino: In function 'void xod::detail::handleDebugProtocolMessages()':
C:\Users\Cesar\AppData\Local\Temp\xod_temp_sketchbook98XhiA\xod_1601190379205_sketch\xod_1601190379205_sketch.ino:1331:35: error: 'struct xod::TransactionState' has no member named 'node_0_isOutputDirty_OUT'; did you mean 'node_2_isOutputDirty_TICK'?
                     g_transaction.node_0_isOutputDirty_OUT = true;
                                   ^ ~~~~~~~~~~~~~~~~~~~~~~~
                                   node_2_isOutputDirty_TICK

C:\Users\Cesar\AppData\Local\Temp\xod_temp_sketchbook98XhiA\xod_1601190379205_sketch\xod_1601190379205_sketch.ino: In function 'void xod::runTransaction()':
C:\Users\Cesar\AppData\Local\Temp\xod_temp_sketchbook98XhiA\xod_1601190379205_sketch\xod_1601190379205_sketch.ino:1391:55: error: 'struct xod::TransactionState' has no member named 'node_0_isOutputDirty_OUT'; did you mean 'node_2_isOutputDirty_TICK'?
             ctxObj._isOutputDirty_OUT = g_transaction.node_0_isOutputDirty_OUT;
                                                       ^ ~~~~~~~~~~~~~~~~~~~~~~~
                                                       node_2_isOutputDirty_TICK

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.

```

---

<div class="post-metadata">

**Author:** ![danya](https://avatars.discourse-cdn.com/v4/letter/d/7ba0ec/32.png) [@danya](https://forum.xod.io/u/danya)\
**Post date:** [September 27, 2020, 8:15am UTC](https://forum.xod.io/t/error-with-digital-write/4466/2 "2020-09-27T08:15:58Z")

</div>

Hello. I had exactly the same error. And I also fixed it by deleting or commenting out this line. This bug is related to tweak. It works with other nodes, but doesn’t work with tweak.  
By the way, I still don’t understand what function they perform  
#pragma XOD evaluate\_on\_pin disable  
#pragma XOD evaluate\_on\_pin enable input\_UPD  
#pragma XOD error\_raise enable

---

<div class="post-metadata">

**Author:** ![danya](https://avatars.discourse-cdn.com/v4/letter/d/7ba0ec/32.png) [@danya](https://forum.xod.io/u/danya)\
**Post date:** [September 27, 2020, 8:27am UTC](https://forum.xod.io/t/error-with-digital-write/4466/3 "2020-09-27T08:27:40Z")

</div>

Very strange, I was able to fix the error without changing the patch.

 ![image](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/d/dbc25ec782aa29e746da628c5f3dabe170409740.png)  
 ![image](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/0/05d37c0484071ae861146019109e81a9d633e411.png)  
As you can see, I just drew another line from the tweak to another patch

---

<div class="post-metadata">

**Author:** ![cesars](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@cesars](https://forum.xod.io/u/cesars)\
**Post date:** [September 27, 2020, 3:24pm UTC](https://forum.xod.io/t/error-with-digital-write/4466/4 "2020-09-27T15:24:19Z")

</div>

Thanks for commenting, I noticed something similar before when writing a library, if I added the line and had digita-write nodes, the error would appear.

Now this seems to be a bug.

I also see that the c ++ implementation of your node does not seem to be updated to 0.35.x

---

<div class="post-metadata">

**Author:** ![danya](https://avatars.discourse-cdn.com/v4/letter/d/7ba0ec/32.png) [@danya](https://forum.xod.io/u/danya)\
**Post date:** [September 27, 2020, 3:35pm UTC](https://forum.xod.io/t/error-with-digital-write/4466/5 "2020-09-27T15:35:56Z")

</div>

No, I have the most recent version. I honestly don’t know why the patch hasn’t been updated. And by the way, even if there is a new version, you can still write in the old way.

---

<div class="post-metadata">

**Author:** ![cesars](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@cesars](https://forum.xod.io/u/cesars)\
**Post date:** [September 27, 2020, 4:24pm UTC](https://forum.xod.io/t/error-with-digital-write/4466/6 "2020-09-27T16:24:44Z")

</div>

There is a fork of the xod folder inside libraries, delete it and start xod again.  
If you’ve ever moved a node or changed something, a copy of the folder is created.

This change occurs when you save any patch.

---

<div class="post-metadata">

**Author:** ![brusher](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.xod.io/brusher/32/475_2.png) [@brusher](https://forum.xod.io/u/brusher)\
**Post date:** [September 30, 2020, 12:36pm UTC](https://forum.xod.io/t/error-with-digital-write/4466/7 "2020-09-30T12:36:54Z")

</div>

Thanks for the report.  
Just released a new version 0.35.3 with the fix of this problem.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/eb7348baa04192c2ef932d1db54d44f09f8a7888.png) [@system](https://forum.xod.io/u/system)\
**Post date:** [October 2, 2020, 12:36pm UTC](https://forum.xod.io/t/error-with-digital-write/4466/8 "2020-10-02T12:36:56Z")

</div>

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