From e5768db31f053f95c6f6ede39346281e78cafb04 Mon Sep 17 00:00:00 2001 From: Peter Hinch Date: Mon, 9 Mar 2020 08:32:17 +0000 Subject: [PATCH] Git confusion. Save receiver test. --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 1e1fa25..3c78771 100644 --- a/README.md +++ b/README.md @@ -147,6 +147,15 @@ Method: it will be called if an error occurs. The value corresponds to the error code (see below). +A function is provided to print errors in human readable form. This may be +invoked as follows: + +```python +from ir_rx.print_error import print_error # Optional print of error codes +# Assume ir is an instance of an IR receiver class +ir.error_function(print_error) +``` + #### NEC classes `NEC_8`, `NEC_16` -- 2.47.3