Skip to content

Commit

Permalink
Merge pull request #15 from Holzhaus/bulk-controller-fix
Browse files Browse the repository at this point in the history
controllers/bulk: Fix BulkController constructor
  • Loading branch information
ferranpujolcamins authored Apr 12, 2020
2 parents cfc4142 + e122b79 commit 97d5623
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/controllers/bulk/bulkcontroller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ static QString get_string(libusb_device_handle *handle, u_int8_t id) {
return QString::fromLatin1((char*)buf);
}

BulkController::BulkController(UserSettingsPointer pConfig,
BulkController::BulkController(
libusb_context* context,
libusb_device_handle* handle,
struct libusb_device_descriptor* desc)
: Controller(pConfig),
: Controller(),
m_context(context),
m_phandle(handle),
in_epaddr(0),
Expand Down
2 changes: 1 addition & 1 deletion src/controllers/bulk/bulkcontroller.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class BulkReader : public QThread {
class BulkController : public Controller {
Q_OBJECT
public:
BulkController(UserSettingsPointer pConfig,
BulkController(
libusb_context* context,
libusb_device_handle* handle,
struct libusb_device_descriptor* desc);
Expand Down
2 changes: 1 addition & 1 deletion src/controllers/bulk/bulkenumerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ QList<Controller*> BulkEnumerator::queryDevices() {
}

BulkController* currentDevice =
new BulkController(m_pConfig, m_context, handle, &desc);
new BulkController(m_context, handle, &desc);
m_devices.push_back(currentDevice);
}
}
Expand Down

0 comments on commit 97d5623

Please sign in to comment.