Skip to content

Commit

Permalink
Update ThePrinterWrapper.m (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
irekasoft authored May 11, 2024
1 parent bdb6949 commit e82331a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ios/ThePrinterWrapper.m
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ -(void) connectPrinter:(nonnull NSString*)objid
} else {
[thePrinter setBusy:PRINTER_CONNECTING];
NSLog(@"connecting to printer %@", objid);
const connectResult = [thePrinter connect:EPOS2_PARAM_DEFAULT startMonitor:true];
int const connectResult = [thePrinter connect:EPOS2_PARAM_DEFAULT startMonitor:true];
if (connectResult == EPOS2_SUCCESS) {
onSuccess([NSString stringWithFormat:@"%d", connectResult]);
} else {
Expand All @@ -166,9 +166,9 @@ -(void) connectPrinter:(nonnull NSString*)objid
withResolver:(RCTPromiseResolveBlock)resolve
withRejecter:(RCTPromiseRejectBlock)reject)
{
const disconnectResult = [self disconnectPrinter:target];
int const disconnectResult = [self disconnectPrinter:target];
if (disconnectResult == EPOS2_SUCCESS) {
const diallocResult = [self deallocPrinter:target];
int const diallocResult = [self deallocPrinter:target];
if (diallocResult == EPOS2_SUCCESS) {
resolve([NSString stringWithFormat:@"%d", diallocResult]);
} else {
Expand Down

0 comments on commit e82331a

Please sign in to comment.