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

Stop trying to write to address FFFFFFFFFFFFFFF8 #38

Closed
wants to merge 6 commits into from

Conversation

krkeegan
Copy link
Collaborator

get_first_empty_address should return 0 if no address can be fount.

The sub add_link expects get_first_empty_address to return 0 if no empty address is found.

This will prevent trying to add an aldb record to the FFFFFFFFFFFFFFF8 address which clearly doesn't exist. Instead the user will now get a nice error advising them to scan the link table before trying to sync links.

Add a conditional check for the file 1100tags.txt.  If it doesn't exist in the user
defined data directory, then default to the Pgm_root/data directory.
An I2CS device will respond with a NACK if you try and control it with the PLM
before it is linked as a responder.  Add a note to the debug log regarding this.
Based on Marc Merlin's code, I confirmed that I received the same error.  More issues with #28 still need to be solved.
These are likely causing some unnoticed error.
Clean up conflicts in AllLinkDatabase.pm.  I had uded more concise languge, but verbose is likely easier to read.

Conflicts:
	lib/Insteon/AllLinkDatabase.pm
The sub add_link expects get_first_empty_address to return 0 if no empty address is found.

This will prevent trying to add an aldb record to the FFFFFFFFFFFFFFF8 address which clearly doesn't exist.  Instead the user will now get a nice error advising them to scan the link table before trying to sync links.
@hollie
Copy link
Owner

hollie commented Jan 17, 2013

Hi Robert,

would it be possible for you to create a new branch for specific fixes? Now you're adding them all to the same branch and .this means I cannot easily pull a specific fix into the main repo.
Or is it your intention to do so because all the commits in the pull request are correlated to each other?

Kind regards,
Lieven.

Op 17-jan.-2013, om 22:26 heeft krkeegan notifications@github.com het volgende geschreven:

get_first_empty_address should return 0 if no address can be fount.

The sub add_link expects get_first_empty_address to return 0 if no empty address is found.

This will prevent trying to add an aldb record to the FFFFFFFFFFFFFFF8 address which clearly doesn't exist. Instead the user will now get a nice error advising them to scan the link table before trying to sync links.

You can merge this Pull Request by running

git pull https://github.com/krkeegan/misterhouse insteon_fix_empty_aldb_typo
Or view, comment on, or merge it at:

#38

Commit Summary

• Fix for Issue #27
• Update debug to note I2CS devices as potential sources of error
• Partial Fix for #28
• Fix typos in AllLinkDatabase
• Merge remote-tracking branch 'upstream/master'
• get_first_empty_address should return 0 if no addr
File Changes

• M lib/Insteon/AllLinkDatabase.pm (18)
• M lib/Insteon/BaseInsteon.pm (2)
Patch Links:

https://github.com/hollie/misterhouse/pull/38.patch
https://github.com/hollie/misterhouse/pull/38.diff

@krkeegan
Copy link
Collaborator Author

I did put this most recent fix in a separate branch as you previously requested. The other commits I made part of my master branch before you asked me to make separate branches for each fix.

Fix for #27 - you already committed.
Update debug to note I2CS devices as potential sources of error - is a pending pull request already
Fix #28 - Was my version of Marc's corrections that you committed 5 days ago, they were subsequently changed in the merge to upstream
Fix typos in AllLinkDatabase - I apologize I thought I submitted a pull request for this, but I see I did not.

In all if you review the actual changes you will see there is no much changed. If you want me to roll back everything to try and separate all of the previous changes into separate branches, I can probably do that, it will just take a while.

Kevin

@hollie
Copy link
Owner

hollie commented Jan 17, 2013

Hi Kevin,

Sorry for the name confusion in my previous mail.

I will merge your pull request first thing tomorrow. I need to figure out
why the overview also mentions the other commits.

Kind regards,
Lieven
Op 17 jan. 2013 23:03 schreef "krkeegan" notifications@github.com het
volgende:

I did put this most recent fix in a separate branch as you previously
requested. The other commits I made part of my master branch before you
asked me to make separate branches for each fix.

Fix for #27 #27 - you
already committed.
Update debug to note I2CS devices as potential sources of error - is a
pending pull request already
Fix #28 #28 - Was my
version of Marc's corrections that you committed 5 days ago, they were
subsequently changed in the merge to upstream
Fix typos in AllLinkDatabase - I apologize I thought I submitted a pull
request for this, but I see I did not.

In all if you review the actual changes you will see there is no much
changed. If you want me to roll back everything to try and separate all of
the previous changes into separate branches, I can probably do that, it
will just take a while.

Kevin


Reply to this email directly or view it on GitHubhttps://github.com//pull/38#issuecomment-12394204.

@krkeegan
Copy link
Collaborator Author

I think the other commits are mentioned because of my misuse of git. For example, when Marc and I both fixed the same problem but used different code to do so, I merged Marc's changes over mine. Naively I thought this would cause my changes simply to be "ignored" for lack of a better word. I now see that my most recent pull request is basically asking you to put my version of the fix into the history of the file. I clearly didn't think this through.

I need a little help on how I should be tracking your master branch. I don't think my system of merging in your master branch into my master branch is the appropriate way to go. Should I create a tracking branch in my repo and then rebase in your master branch whenever it changes?

Thanks for any guidance you can offer. I figure at some point I will understand git.

@krkeegan krkeegan closed this Jan 17, 2013
@hollie
Copy link
Owner

hollie commented Jan 18, 2013

Hi Kevin,

I see you have closed this pull request and that you have in the mean time created separate new pull requests.

So I guess you solved your git workflow?

Kind regards,
Lieven.

@krkeegan
Copy link
Collaborator Author

Lieven,

Yes, I fixed my pull requests.

But I still have some questions about creating an git workflow. You seem
to be knowledgeable about git, so if you are willing to answer them for me
I would appreciate it.

I think I have two requirements:

  1. Create commits which can be converted into upstream pull requests
    without a lot of extraneous commits.
  2. Allow for an "operational" branch that tracks the upstream branch, but
    which includes any changes or fixes that I have contributed which have not
    yet been pulled in by the upstream branch.

Right now I have 3 Categories of branches in my repository:

*master - Which is set to track your master branch. This way I can create
commits and pull requests which are clean.

*1 or more branches of "fixes" - These are branched from master. They each
fix a self contained problem. These are used to make the pull requests to
upstream. At the moment I have three of these.

*running - This was originally branched from master, but has merged in the
various "fixes" branches. This is the operational branch of what is used
on my computer.

My main question is, what do I do with the running branch? I can see right
now that it has two additional merge commits in it that are not in your
upstream branch. As time goes on, it will continue to acquire additional
merge commits. In the future, while on a file level it may be identical to
the upstream branch it will on a commit level appear to be extremely
different.

Do I have to continually just abandon the running branch when the upstream
master and it become close enough to the same?

I hope my questions are clear. I have been trying to read up on git, but I
am clearly still struggling.

Kevin

On Fri, Jan 18, 2013 at 12:47 AM, Lieven Hollevoet <notifications@github.com

wrote:

Hi Kevin,

I see you have closed this pull request and that you have in the mean time
created separate new pull requests.

So I guess you solved your git workflow?

Kind regards,
Lieven.


Reply to this email directly or view it on GitHubhttps://github.com//pull/38#issuecomment-12412746.

@hollie
Copy link
Owner

hollie commented Jan 23, 2013

Hi Kevin,

Sorry for the late reply, I have been offline the last few days.

I will be glad to help you further this weekend.

Kind regards,
Lieven.

Op 18-jan.-2013, om 18:39 heeft krkeegan notifications@github.com het volgende geschreven:

Lieven,

Yes, I fixed my pull requests.

But I still have some questions about creating an git workflow. You seem
to be knowledgeable about git, so if you are willing to answer them for me
I would appreciate it.

I think I have two requirements:

  1. Create commits which can be converted into upstream pull requests
    without a lot of extraneous commits.
  2. Allow for an "operational" branch that tracks the upstream branch, but
    which includes any changes or fixes that I have contributed which have not
    yet been pulled in by the upstream branch.

Right now I have 3 Categories of branches in my repository:

*master - Which is set to track your master branch. This way I can create
commits and pull requests which are clean.

*1 or more branches of "fixes" - These are branched from master. They each
fix a self contained problem. These are used to make the pull requests to
upstream. At the moment I have three of these.

*running - This was originally branched from master, but has merged in the
various "fixes" branches. This is the operational branch of what is used
on my computer.

My main question is, what do I do with the running branch? I can see right
now that it has two additional merge commits in it that are not in your
upstream branch. As time goes on, it will continue to acquire additional
merge commits. In the future, while on a file level it may be identical to
the upstream branch it will on a commit level appear to be extremely
different.

Do I have to continually just abandon the running branch when the upstream
master and it become close enough to the same?

I hope my questions are clear. I have been trying to read up on git, but I
am clearly still struggling.

Kevin

On Fri, Jan 18, 2013 at 12:47 AM, Lieven Hollevoet <notifications@github.com

wrote:

Hi Kevin,

I see you have closed this pull request and that you have in the mean time
created separate new pull requests.

So I guess you solved your git workflow?

Kind regards,
Lieven.


Reply to this email directly or view it on GitHubhttps://github.com//pull/38#issuecomment-12412746.


Reply to this email directly or view it on GitHub.

@hollie
Copy link
Owner

hollie commented Jan 26, 2013

Hello Kevin,

I don't know why you would need to keep your running branch different from your master branch. When you make a fix compared to master, you can safely merge that change in your own master. When I or one of the other developers then merges a pull request from one of your branches into hollie/master, then this will not show as a different commit to you when you merge hollie/master with your master to keep it up to date.

As long as you create separate branches for separate fixes, all should be fine.

Best regards,
Lieven.

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.

2 participants