Skip to content
This repository has been archived by the owner on Jun 16, 2024. It is now read-only.

Commit

Permalink
Merge pull request #10 from UniversityRadioYork/vs2015-2
Browse files Browse the repository at this point in the history
BAPS 2.7.0
  • Loading branch information
LordAro authored Oct 25, 2018
2 parents c388cb1 + d6b23be commit 421a163
Show file tree
Hide file tree
Showing 124 changed files with 6,185 additions and 5,911 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -277,3 +277,5 @@ __pycache__/
# Cake - Uncomment if you are using it
# tools/**
# !tools/packages.config

*.cache
253 changes: 133 additions & 120 deletions BAPS2.sln

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions BAPSController/AssemblyInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ using namespace System::Security::Permissions;
[assembly:AssemblyTitleAttribute("BAPS USB Controller")];
[assembly:AssemblyDescriptionAttribute(".NET wrapper for the 2nd generation BAPS Controller")];
[assembly:AssemblyConfigurationAttribute("Private")];
[assembly:AssemblyCompanyAttribute("Uni-Software")];
[assembly:AssemblyCompanyAttribute("URY")];
[assembly:AssemblyProductAttribute("BAPS USB Controller")];
[assembly:AssemblyCopyrightAttribute("Copyright (c) 2008")];
[assembly:AssemblyTrademarkAttribute("Uni-Software")];
[assembly:AssemblyCopyrightAttribute("Copyright (c) 2018")];
[assembly:AssemblyTrademarkAttribute("University Radio York")];
[assembly:AssemblyCultureAttribute("")];
[assembly:AssemblyInformationalVersionAttribute("1.0.0.0")];
[assembly:AssemblyInformationalVersionAttribute("1.1.0.0")];

//
// Version information for an assembly consists of the following four values:
Expand All @@ -32,7 +32,7 @@ using namespace System::Security::Permissions;
// You can specify all the value or you can default the Revision and Build Numbers
// by using the '*' as shown below:

[assembly:AssemblyVersionAttribute("1.0.0.0")];
[assembly:AssemblyVersionAttribute("1.1.0.0")];

[assembly:ComVisible(false)];

Expand Down
7 changes: 5 additions & 2 deletions BAPSController/BAPSController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ BAPSController::BAPSController()

if (hDll == 0)
{
// Initialise empty array and get out
this->serialNumbers = gcnew array<System::String^>(0);
return;
}

Expand Down Expand Up @@ -186,7 +188,7 @@ void BAPSController::runHelper()
USBm_DirectionB(i, 0x00, 0xFF);
USBm_WriteB(i, 0xFF);
}

/* Swap in the new names and offsets */
serialNumbers = newSerialNumbers;
deviceCount = newDeviceCount;
Expand All @@ -199,5 +201,6 @@ void BAPSController::runHelper()

array<System::String^>^ BAPSController::getSerialNumbers()
{
// Just returns empty array if no usb
return safe_cast<array<System::String^>^>(serialNumbers->Clone());
}
}
4 changes: 2 additions & 2 deletions BAPSController/BAPSController.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ using namespace System;


namespace BAPSControllerAssembly
{
{
public delegate void SignalCallback(System::String^, int);

public ref class BAPSController
Expand Down Expand Up @@ -76,7 +76,7 @@ namespace BAPSControllerAssembly
USBm_Copyright_type USBm_Copyright;
USBm_About_type USBm_About;
USBm_Version_type USBm_Version;

int deviceCount;
array<System::String^>^ serialNumbers;
array<unsigned char>^ lastByteA;
Expand Down
265 changes: 0 additions & 265 deletions BAPSController/BAPSController.vcproj

This file was deleted.

Loading

0 comments on commit 421a163

Please sign in to comment.