-
Notifications
You must be signed in to change notification settings - Fork 426
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: close relays at startup after we load config #526
Conversation
If you aren't using OFFICIALBOARD and your relay isn't active high on pin 13 it will be left open on startup.
isn't this happening already here: https://github.com/esprfid/esp-rfid/blob/dev/src/config.esp#L166 ? |
Oh interesting. Is there any reason that shouldn't happen there regardless of if it is an OFFICIALBOARD? What is the reasoning behind the OFFICIALBOARD stuff? |
I'm not 100% sure how the official board works unfortunately, but it's a custom PCB with specific components. So if you have the official board you don't need to setup anything, it's all ready with zero configuration. If you have any other compatible hardware you shouldn't use the OFFICIALBOARD flag. Makes sense? |
I have the PCB in the images in the readme from the tindie store. We could remove the Either way I think I'm going to not compile with -DOFFICIALBOARD again so it doesn't ignore configuration stuff. |
Now that I'm checking the board, I can see that the old version supports only the Wiegand and the new one also other readers. I'm not sure if @nardev is reading us, but probably we can drop the |
@matjack1 you are right! |
Thank you @nardev for confirming! I might try getting rid of the |
I also have several different hardware versions and it's quite hard to
maintain it.
At the moment I think making separate, custom config files could make
things easier or even make whole list of default values in separate h files
and just a simple switch in the begging to choose the list of default
common values..
Either way, the UI should be as same as possible. It's just pain yo
maintain it otherwise.
…On Fri, Jul 15, 2022, 10:12 AM Matteo Giaccone ***@***.***> wrote:
Thank you @nardev <https://github.com/nardev> for confirming! I might try
getting rid of the OFFICIALBOARD flag and simplify everything a bit then
;)
—
Reply to this email directly, view it on GitHub
<#526 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFJ55RFY6RDVRACLU4HDWDVUEMM5ANCNFSM527WDDUA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
It's good to know that you are still using the project! We could think about shipping some configs that you can pick from the UI maybe? So you can pick the settings the first time? When I'll play around to remove the build flag I'll try something out and let you know! |
That would be a great first move if you can...
…On Fri, Jul 15, 2022 at 10:22 AM Matteo Giaccone ***@***.***> wrote:
It's good to know that you are still using the project!
We could think about shipping some configs that you can pick from the UI
maybe? So you can pick the settings the first time? When I'll play around
to remove the build flag I'll try something out and let you know!
—
Reply to this email directly, view it on GitHub
<#526 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFJ55U3NXSPTBH55T6GQU3VUENT7ANCNFSM527WDDUA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
Vedran Alajbegovic
skype: vedran.alajbegovic
mob: +38761107423
|
I've added this issue: #545 to track what's still needed. I'm going to close this PR as this should not be needed anymore, OK? Let me know if I'm wrong though :) |
If you aren't using OFFICIALBOARD and your relay isn't active high on
pin 13 it will be left open on startup.
I feel like this is inconsistant because I thought it was working a few days ago
but all the commits I might have had running don't lock my test door controller,
so I dunno.