Linux: Fixed startup crash (due to earlier commit)
This commit is contained in:
parent
7619b93cfe
commit
130b923a0b
1 changed files with 2 additions and 2 deletions
|
@ -872,7 +872,7 @@ ConsoleFeatures Console::GetAvailableFeatures()
|
||||||
{
|
{
|
||||||
ConsoleFeatures features = ConsoleFeatures::None;
|
ConsoleFeatures features = ConsoleFeatures::None;
|
||||||
shared_ptr<BaseMapper> mapper = _mapper;
|
shared_ptr<BaseMapper> mapper = _mapper;
|
||||||
shared_ptr<ControlManager> controlManager = controlManager;
|
shared_ptr<ControlManager> controlManager = _controlManager;
|
||||||
if(mapper && controlManager) {
|
if(mapper && controlManager) {
|
||||||
features = (ConsoleFeatures)((int)features | (int)mapper->GetAvailableFeatures());
|
features = (ConsoleFeatures)((int)features | (int)mapper->GetAvailableFeatures());
|
||||||
|
|
||||||
|
@ -894,7 +894,7 @@ ConsoleFeatures Console::GetAvailableFeatures()
|
||||||
void Console::InputBarcode(uint64_t barcode, uint32_t digitCount)
|
void Console::InputBarcode(uint64_t barcode, uint32_t digitCount)
|
||||||
{
|
{
|
||||||
shared_ptr<BaseMapper> mapper = _mapper;
|
shared_ptr<BaseMapper> mapper = _mapper;
|
||||||
shared_ptr<ControlManager> controlManager = controlManager;
|
shared_ptr<ControlManager> controlManager = _controlManager;
|
||||||
|
|
||||||
if(mapper) {
|
if(mapper) {
|
||||||
shared_ptr<IBarcodeReader> barcodeReader = std::dynamic_pointer_cast<IBarcodeReader>(mapper->GetMapperControlDevice());
|
shared_ptr<IBarcodeReader> barcodeReader = std::dynamic_pointer_cast<IBarcodeReader>(mapper->GetMapperControlDevice());
|
||||||
|
|
Loading…
Add table
Reference in a new issue