Skip to content
This repository was archived by the owner on Jun 5, 2019. It is now read-only.

Conversation

@doingnz
Copy link
Contributor

@doingnz doingnz commented May 22, 2016

OneWire constructor extended to accept both a logical port number in the range 0..MAX_PORTNUM-1, and a physical IO Port.

Physical I/O Output pin number stored in an internal array indexed by the logical port number.
Logical port number checked to be in range. Further calls to OneWire API expect logical port number, which is used to look up physical I/O port number.

Fixes issue noted in NetMF Codeplex:

…ORTNUM-1

OneWire constructor extended to accept a logical pin number in the range 0..MAX_PORTNUM-1
and check in range in subsequint calls to avoid reference outside array bounds.
@smaillet-ms smaillet-ms merged commit 9c5dd1c into NETMF:dev Jul 9, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants