Created
November 26, 2021 21:00
-
-
Save NikhilNanjappa/a550235ff20f8e9e106cd4f9d138d0a1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const warningCodeLookup = { | |
'66': 'warning_low_ink_yellow', | |
'67': 'warning_low_ink_black' | |
} | |
let information = DLLWrapper.GetInformation() | |
if (warningCodeLookup[information.warning_code] == "warning_low_ink_yellow { | |
console.log("Low Ink on Yellow Cartridge") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment