code wiki / (root) / nx_toner_continue.nx

nx_toner_continue.nx

buildroot/runtime/nx_toner_continue.nx

3995 B84 linesdepth 6pulls 8 transitivereach 0 importersview sourcekind tooltopic toner
docsdependenciesstructsconstsfunctions

about

nx_toner_continue.nx -- SOVEREIGN network override for the proprietary toner block. Drives the printer's OWN web form (POST /general/replacetoner.html, field B5c0: 1=Continue, 2=Stop) to force Continue-mode, so the printer never hard-stops on aftermarket/low toner. This is a reversible CONFIG TOGGLE via the device's own validated settings UI -- NOT a firmware/EEPROM/NVRAM write -> never-brick (#26) by construction. MODE default = 1 (Continue). Applying Continue when already Continue is an idempotent no-op that proves the network-override capability without changing device state. Sovereign HTTP (reuses transport helpers). genealogy_id: project-printer-management-ipp-sclass-2026-06-20 ; license_tier: ORIGINAL

dependencies 3 imports · 0 importers

nx_syscalls.nx nx_connect.nx nx_ipp_transport.nx nx_toner_continue.nx

imports: nx_syscalls.nxnx_connect.nxnx_ipp_transport.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main p sys_write sys_mmap nx_ipt_puts nx_ipt_puti sys_mmap ↻ sys_socket sys_exit sys_set_socket_timeout sys_mmap ↻ sys_setsockopt sys_munmap nx_ipt_sockaddr nx_connect_bounded nx_fcntl sys_connect sys_mmap ↻ sys_poll sys_close sys_read nx_ipt_verdict_name pn sys_write ↻ sys_mmap ↻

structs

none

consts

13const K_MAGIC_65536: i64 = 65536
15const MODE: i64 = 1 // 1 = Continue (defeat the hard-stop), 2 = Stop (vendor default)

functions

17func p(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 }
called by 1: main calls 1: sys_write
18func pn(v: i64) -> i64
called by 1: main calls 2: sys_writesys_mmap
28func main() -> i64