Skip to content

Commit

Permalink
README update.
Browse files Browse the repository at this point in the history
  • Loading branch information
maniglia committed Jan 7, 2024
1 parent be5e5d4 commit 5a039ee
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 15 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ You can get KSociety.SharpCubeProgrammer by [grabbing the latest NuGet package](
- ConnectDfuBootloader

## General purposes functions
- SetDisplayCallbacks
- SetVerbosityLevel
- CheckDeviceConnection
- GetDeviceGeneralInf
- ReadMemory
Expand Down
2 changes: 2 additions & 0 deletions docs/KSociety.SharpCubeProgrammer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ You can get KSociety.SharpCubeProgrammer by [grabbing the latest NuGet package](
- ConnectDfuBootloader

## General purposes functions
- SetDisplayCallbacks
- SetVerbosityLevel
- CheckDeviceConnection
- GetDeviceGeneralInf
- ReadMemory
Expand Down
15 changes: 0 additions & 15 deletions src/01/KSociety.SharpCubeProgrammer/CubeProgrammerApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -396,21 +396,6 @@ public void ConnectI2cBootloader()

// General module groups general purposes functions used by any interface.

/// <inheritdoc />
//public DisplayCallBacks SetDisplayCallbacks(InitProgressBar initProgressBar, LogMessageReceived messageReceived, ProgressBarUpdateReceived progressBarUpdate)
//{
// var callbacksHandle = new DisplayCallBacks
// {
// InitProgressBar = Marshal.GetFunctionPointerForDelegate(initProgressBar),
// LogMessage = Marshal.GetFunctionPointerForDelegate(messageReceived),
// LoadBar = Marshal.GetFunctionPointerForDelegate(progressBarUpdate)
// };

// Native.ProgrammerApi.SetDisplayCallbacks(callbacksHandle);

// return callbacksHandle;
//}

/// <inheritdoc />
public DisplayCallBacks SetDisplayCallbacks(InitProgressBar initProgressBar, LogMessageReceived messageReceived, ProgressBarUpdateReceived progressBarUpdate)
{
Expand Down

0 comments on commit 5a039ee

Please sign in to comment.