-
Notifications
You must be signed in to change notification settings - Fork 2
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
Replace switch-case statement with config file for better management #1
base: main
Are you sure you want to change the base?
Conversation
This new version of the script works well on my MiSTer when I manually run rfid_process.sh so it should work well with the real RFID reader :) |
Nevermind my last comment (went ahead and deleted it) The scripts works great, but it only works if its started manually. There's an issue with forwarding the card info the script generates to the "screen" session. If you connect to the screen session it starts working again, |
Hi,
Thanks for trying the new code!
Thanks for the detail, I'll work on it after the weekend when I'm back home
!
Let's keep in touch when each one finds something.
I have a friend building the rfid system for me, it will be easier for me
when I get it :)
Le sam. 20 août 2022, 00:33, javiwwweb ***@***.***> a écrit :
… Hey, thanks for wanting to enhance the code. I loaded up your code to the
mister and it was a no-go. I initially assumed it had to do with the PATH
variable, since it kept saying that it couldn't find games_rfid.conf (I
echoed PATH and it was listed!), so I tried with the entire path pointing
to /media/fat/Scripts/games_rfid.conf It did find it, but it kept wanting
to automatically launch the last file on the list for some reason. Not sure
how much help this is, but I will see if I continue poking at it
—
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AS6HH6YT5FXIP3MYSMERHRTV2ADSPANCNFSM56WKWX7Q>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Hi,
In case you wonder why I added an "unset" command: I have seen that arduino runs ". rfid_process.sh" instead of just "rfid_process.sh". This means that the bash variables of rfid_process.sh keeps getting sourced, aka they persist in the bash session of serial_listen.sh. |
Thanks for everything you are doing. I really can't appreciate it enough. I
like the changes you've submitted. I've been playing with the code and I
have gotten it to run consistently if i execute serial_lister.sh a second
time, but when executed it stops any running game and launches the last
item on the games_rfid.conf list and then its continues to work from that
point on. Perhaps with your new code that disallows running any game if
RFID not found this last behavior may be taken care of. I'll test it soon
and report back.
…On Sun, Aug 21, 2022 at 5:35 PM coded-with-claws ***@***.***> wrote:
Hi,
Thanks for your update!
I'll try to figure it out about this weird behavior with the serial_listen
/ screen.
In the meantime, I commited little changes :
- absolute path for config file (following your feedback, and it seems
logical because of the organization of "serial_listen => bash => executes
what arduino says", as arduino doesn't run from directory
/media/fat/Scripts/
- don't run any game if RFID is not found (I had a bug: if RFID not
found, it ran the last game of config file).
—
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AACQSWHK7PLQ56UNJL7AAADV2KOLLANCNFSM56WKWX7Q>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Hey guys, I'm just getting caught up here! I like the config file idea. That should be something I could merge into my repo. Thanks to both of you. I'm loving that this is taking shape :) |
Hey @coded-with-claws, I loved your approach and got it to work on my fork. Before I merge this PR, though, would you like to make a PR on my repo with those changes so that you get proper credit? Or would you just like some credit in the ReadMe? I want to make sure you're properly thanked! :D Here's the PR: ElRojo#18 |
Hi @ElRojo, thanks for your interest for the config idea! I'd love that you could merge it into your repo! |
@coded-with-claws I'll get some more explicit citation added for you! I can add some information on how to manually add games -- though this version doesn't require manually adding! Lastly, I have indeed tested it and it's working great. Well done!! |
@ElRojo I'm so glad that you tested it and that it's working great! |
Hi,
Could you please test the new code on a real MisTer because I don't own the RFID hardware needed. I just tested the code on a Linux machine to verify it tries to run the good rom.
Also, we could then envision an evolution of ElRojo's fork so that he writes into the config file :)