Skip to content
This repository has been archived by the owner on Apr 19, 2022. It is now read-only.

Add lazy initialization to AdcController #31

Merged
merged 1 commit into from
Nov 27, 2018

Conversation

josesimoes
Copy link
Member

@josesimoes josesimoes commented Nov 22, 2018

Description

  • Add lazy initialization to I2cController.
  • Also changed controllersCollection making it accessible as property.
  • Add AdcControllerManager allowing multiple ADC controllers.

Motivation and Context

  • Make sure that the variables do exist when being used. Using the previous code was causing issues because, on occasions, the related types could still be unresolved.
  • Decorate fields with DebuggerBrowsableState to hide them on debug session.

How Has This Been Tested?

Screenshots

Types of changes

  • Improvement (non-breaking change that improves a feature, code or algorithm)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

Signed-off-by: José Simões [email protected]

@nfbot
Copy link
Member

nfbot commented Nov 22, 2018

Hi @josesimoes,

I'm nanoFramework bot.
Thank you for your contribution!

A human will be reviewing it shortly. 😉

josesimoes added a commit to Eclo/nf-interpreter that referenced this pull request Nov 22, 2018
- Following nanoframework/Windows.Devices.Adc#31.

[version update]
***_NO_CI***
@josesimoes
Copy link
Member Author

@steffalk please hold the review.

josesimoes added a commit to Eclo/nf-interpreter that referenced this pull request Nov 26, 2018
@josesimoes
Copy link
Member Author

@steffalk it's OK to review this now.

Copy link
Member

@steffalk steffalk left a comment

Choose a reason for hiding this comment

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

Please see the comments, José

@josesimoes josesimoes force-pushed the add-lazy-init-adccontroller branch 2 times, most recently from ae78429 to 6db4229 Compare November 27, 2018 00:28
- Add lazy initialization to I2cController.
- Also changed DeviceCollection making it accessible as property.
- Make sure that the variables do exist when being used. Using the previous code was causing issues because, on occasions, the related types could still be unresolved.
- Add AdcControllerManager allowing multiple ADC controllers.
- Decorate fields with DebuggerBrowsableState to hide them on debug session.

Signed-off-by: José Simões <[email protected]>
Copy link
Member

@steffalk steffalk left a comment

Choose a reason for hiding this comment

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

OK!

@josesimoes josesimoes merged commit 8bcffa2 into nanoframework:develop Nov 27, 2018
@josesimoes josesimoes deleted the add-lazy-init-adccontroller branch November 27, 2018 10:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants