shithub: util

Download patch

ref: 1ac3630b03c88198069ca81d7e41f30d3d9d4e74
parent: 542129a476c8222b0b1bc07a29cc9b5d612e1162
author: glenda <glenda@kingship>
date: Tue Oct 28 18:54:04 EDT 2025

ads7830

--- a/ads7830.c
+++ b/ads7830.c
@@ -117,6 +117,9 @@
 {
 	int i;
 	char buf[32];
+
+	readch(0); // is there hardware?
+
 	fs.tree = alloctree("ads7830", "ads7830", DMDIR|0555, nil);
 	for (i = 0; i < 8; i++) {
 		snprint(buf, 32, "adc%d", i);
--