1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-07-11 04:28:58 +00:00

Fixes test units.

This commit is contained in:
Thomas Harte 2020-01-27 20:35:58 -05:00
parent 4b53f6a9f0
commit 189122ab84

View File

@ -32,9 +32,8 @@ class DigitalPhaseLockedLoopDelegate {
- (instancetype)initWithClocksPerBit:(NSUInteger)clocksPerBit { - (instancetype)initWithClocksPerBit:(NSUInteger)clocksPerBit {
self = [super init]; self = [super init];
if(self) { if(self) {
_digitalPhaseLockedLoop = std::make_unique<Storage::DigitalPhaseLockedLoop<DigitalPhaseLockedLoopDelegate>>((unsigned int)clocksPerBit); _digitalPhaseLockedLoop = std::make_unique<Storage::DigitalPhaseLockedLoop<DigitalPhaseLockedLoopDelegate>>((unsigned int)clocksPerBit, _delegate);
_delegate.bridge = self; _delegate.bridge = self;
_digitalPhaseLockedLoop->set_delegate(&_delegate);
} }
return self; return self;
} }