# Rbe deadband stops first message

**URL:** https://discourse.nodered.org/t/rbe-deadband-stops-first-message/27540
**Category:** General
**Created:** [30 May 2020 21:13 UTC](https://discourse.nodered.org/t/rbe-deadband-stops-first-message/27540 "2020-05-30T21:13:48Z")
**Posts on this page:** 3
**Page:** 2

<div class="post-metadata">

### Author: ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)
#### Post date: [31 May 2020 17:00 UTC](https://discourse.nodered.org/t/rbe-deadband-stops-first-message/27540/22 "2020-05-31T17:00:41Z")

</div>

Yes I think it should pass the first message through.  
the fix is fairly simple if you want to manually edit.  
Find the file rbe.js in your .node-red/node\_modules/node-red-node-rbe directory and fix line 57 to be

```
 if (node.previous[t] === undefined) { node.previous[t] = n - node.gap - 1; } 

```

IE add the -1 to the existing line (which forces the initial value to always be outside the range and thus get sent. I'll fix the node and update it soon.

Fixed in version v0.2.9

---

<div class="post-metadata">

### Author: ![john-arvid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/john-arvid/32/23004_2.png) [@john-arvid](https://discourse.nodered.org/u/john-arvid)
#### Post date: [31 May 2020 21:47 UTC](https://discourse.nodered.org/t/rbe-deadband-stops-first-message/27540/23 "2020-05-31T21:47:05Z")

</div>

Thank you all for your input.  
And thank you @dceejay for the quick remedy. Working good for me!

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [14 June 2020 21:47 UTC](https://discourse.nodered.org/t/rbe-deadband-stops-first-message/27540/24 "2020-06-14T21:47:10Z")

</div>

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

[Previous page](https://discourse.nodered.org/t/rbe-deadband-stops-first-message/27540.md?page=1)
