#387 handle resizing, improved reconnect handling, fixed disconnect detection bug

This commit is contained in:
Mikayla Fischler
2024-02-21 20:33:07 -05:00
parent 372fd426d8
commit f152c37ea9
4 changed files with 221 additions and 81 deletions

View File

@@ -300,6 +300,17 @@ function ppm.handle_unmount(iface)
return pm_type, pm_dev
end
-- log all mounts, to be used if `ppm.mount_all` is called before logging is ready
function ppm.log_mounts()
for iface, mount in pairs(ppm_sys.mounts) do
log.info(util.c("PPM: had found a ", mount.type, " (", iface, ")"))
end
if #ppm_sys.mounts == 0 then
log.warning("PPM: no devices had been found")
end
end
-- GENERAL ACCESSORS --
-- list all available peripherals