-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
Update sdcard etc #110
Open
AdrianSoundy
wants to merge
9
commits into
nanoframework:main
Choose a base branch
from
AdrianSoundy:Map_sdcard_pins
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+372
−95
Open
Update sdcard etc #110
Changes from 3 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
7d57af2
Update sdcard etc
AdrianSoundy eb77250
Fix unit test
AdrianSoundy d891a97
Update packages
AdrianSoundy b16de05
Merge branch 'main' into Map_sdcard_pins
josesimoes 1126030
Fix missing versions in project file
AdrianSoundy 9aef137
Merge branch 'Map_sdcard_pins' of https://github.com/AdrianSoundy/Sys…
AdrianSoundy 79d7a72
Rename Card detect parameters
AdrianSoundy 743fa02
Merge branch 'main' into Map_sdcard_pins
AdrianSoundy 25d009c
Merge branch 'main' into Map_sdcard_pins
AdrianSoundy File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
System.IO.FileSystem/nanoFramework/CardDetectChangedEventArgs.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
// | ||
// Copyright (c) .NET Foundation and Contributors | ||
// See LICENSE file in the project root for full license information. | ||
// | ||
|
||
using System; | ||
|
||
namespace nanoFramework.System.IO | ||
{ | ||
/// <summary> | ||
/// State of card detect | ||
/// </summary> | ||
public enum CardDetectState | ||
{ | ||
/// <summary> | ||
/// Card Inserted | ||
/// </summary> | ||
Inserted, | ||
|
||
/// <summary> | ||
/// Card removed | ||
/// </summary> | ||
Removed | ||
}; | ||
|
||
/// <summary> | ||
/// Arguments for Card detect event | ||
/// </summary> | ||
public class CardDetectChangedEventArgs : EventArgs | ||
{ | ||
private CardDetectState _cardState; | ||
private uint _slotIndex; | ||
|
||
internal CardDetectChangedEventArgs(CardDetectState state, uint SlotIndex) | ||
{ | ||
_cardState = state; | ||
_slotIndex = SlotIndex; | ||
} | ||
|
||
/// <summary> | ||
/// State of Card Detect. | ||
/// </summary> | ||
public CardDetectState CardState => _cardState; | ||
|
||
/// <summary> | ||
/// SD card slot index | ||
/// </summary> | ||
public uint SlotIndex => _slotIndex; | ||
} | ||
} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These versions and sing key tokens need to be here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I had problems updating to latest nugets so removed and added again and that's what i ended with. Seems to build ok. I can manually add token etc back in.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Had to manually update version for gitversion in project for it to update properly.