Skip to content
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

Refactored code #71

Closed
wants to merge 3 commits into from
Closed

Conversation

rashidkalwar
Copy link

Hi @Davidy22

I did all the pre-commit stuff looks everything good to me now, please have a thorough look and let me know if I need to make other changes,

hopefully later this week I will on creating functions for that lengthy code in main.py also I will make some classes to make thing a little more simple and accessible.

thanks!

@Davidy22
Copy link
Owner

Davidy22 commented Aug 6, 2021

Just did a checkout and the code crashed immediately on my machine when it entered toggleFlag. Will do a quick skim to see what's happening here, but make sure to run the code to make sure there's no semantic breakage.

Copy link
Owner

@Davidy22 Davidy22 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I only found one source of a runtime error but there might be more after you fix it, make sure to run and make sure the program works after you write your patch


def toggleFlag(flag: List[int]) -> None:
"""Temp function for toggling video recording from inside screen"""
vidBuf = Queue(32767)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vidBuf is a shared pipe between processes that needs to contain messages between processes, in this case a video filename. If you declare a new buffer in here, the value won't get sent out to the shared buffer outside this function. You can add function parameters if they're needed.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

got it. I will do the testing and will let you know.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What happened with the testing ?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Davidy22
Copy link
Owner

I'm going to close this because it doesn't look like this is going to get finished. If you have a fixed version of this later you can create a new fresh pull request.

@Davidy22 Davidy22 closed this Aug 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants