Help with my first pistons pls


#1

Hi
Using help I’ve found on here I’ve developed 3 similar pistons. 2 work perfectly but one only works partially. I’ve carefully compared them but can’t see any issue

This one for example works perfectly

But in this one the system will arm but the siren will not beep

Can someone please advise
Thanks in advance

(PUT YOUR INFO HERE)

2) What is the expected behavior?
(PUT YOUR INFO HERE)

3) What is happening/not happening?
(PUT YOUR INFO HERE)

4) Post a Green Snapshot of the pistonimage
(UPLOAD YOUR IMAGE HERE)

5) Attach any logs (From ST IDE and by turning logging level to Full)
(PASTE YOUR LOGS HERE BETWEEN THE MARKS THEN HIGHLIGHT ALL OF THE LOGS SND CLICK ON THE </> ICON TO FORMAT THEM)

REMOVE BELOW AFTER READING
If a solution is found for your question then please mark the post as the solution.


#2

Is “be111” a typo?


#3

I thought that too, but it’s actually bell1. Just a weird font that makes the lowercase l’s look like 1’s.

I don’t have a button to test with but the code looks right.


#4

Yes bell 1
The only thing really different from the other two is the double press, was created as an expression


#5

It’s executing the first part of the THEN? It’s actually setting the mode properly?


#6

Well, this plus you changed
Beep;
to
bell1();

The issue could be the double press expression, OR it could be the bell1().

To narrow down the issue, you can change the bell1() back to Beep for testing.

  • If that works, then you know for sure it’s the “bell1()” that needs adjusting
  • If that fails, then you know that the double part in the expression needs adjusting