mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-15 10:25:23 +00:00
Convert binary string to integer in DoorLockService
This commit is contained in:
@ -481,6 +481,7 @@ export class DoorLockService {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// Convert the binary string to an integer
|
||||||
const workingDayValue = parseInt(binaryString, 2);
|
const workingDayValue = parseInt(binaryString, 2);
|
||||||
|
|
||||||
return workingDayValue;
|
return workingDayValue;
|
||||||
|
Reference in New Issue
Block a user