From: ian Date: Sun, 4 May 2008 18:25:21 +0000 (+0000) Subject: suppress boring detections by default X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ijackson/git?a=commitdiff_plain;h=33222b2129df2c07c8aadd06d9217779c35c0c1c;p=trains.git suppress boring detections by default --- diff --git a/hostside/README.commands b/hostside/README.commands index 5df572c..b10c1b5 100644 --- a/hostside/README.commands +++ b/hostside/README.commands @@ -27,7 +27,7 @@ POSSIBLY-ASYNCHRONOUS REPORTING OF MESSAGES TO/FROM (MASTER) PIC nmra data ping/pong special in other out nmra done detect (see above) msg in (also in-info) -v0 suppressed suppressed raw with type cooked - -v1 suppressed suppressed raw with type cooked + -v1 suppressed only unignored raw with type cooked -v2 suppressed cooked raw with type cooked -v3 both both raw with type both diff --git a/hostside/startup.c b/hostside/startup.c index 416340b..c9b6288 100644 --- a/hostside/startup.c +++ b/hostside/startup.c @@ -227,7 +227,11 @@ static SegmentNum on_pic_detect_prep(int detyn, int objnum) { (segn= info_segmentmap[objnum]) < 0) die("PIC sent detect%d @#%#x not in map",detyn,objnum); - oprintf(UPO,"picio in-info detect %d %s\n",detyn,info_segments[segn].pname); + if (!(picio_send_noise <= 1 && + segments[segn].owner && + segments[segn].det_ignore)) + oprintf(UPO,"picio in-info detect %d %s\n", + detyn, info_segments[segn].pname); return segn; }