diff options
author | Uwe Hermann <uwe@hermann-uwe.de> | 2010-04-11 21:44:12 +0200 |
---|---|---|
committer | Uwe Hermann <uwe@hermann-uwe.de> | 2010-04-11 21:44:12 +0200 |
commit | 0588ed702725edbb5ed37ceb63fced93a5e68251 (patch) | |
tree | a3a64303f3a3bf982b54a2793dc2130d7ed1a232 /decode.c | |
parent | d0f3d67746c89ee19f4c7a8d6f8858afd54347de (diff) | |
download | libsigrokdecode-0588ed702725edbb5ed37ceb63fced93a5e68251.tar.gz libsigrokdecode-0588ed702725edbb5ed37ceb63fced93a5e68251.zip |
First attempt at an I2C decoder (untested).
Diffstat (limited to 'decode.c')
-rw-r--r-- | decode.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -35,9 +35,9 @@ int sigrokdecode_init(void) /* Allows for ./gui/sigrok-gui in the top-level directory. */ PySys_SetPath("libsigrokdecode/scripts"); /* Allows for ./sigrok-gui in the gui/ directory. */ - PySys_SetPath("../libsigrokdecode/scripts"); + // PySys_SetPath("../libsigrokdecode/scripts"); /* Allows for sigrok-gui from anywhere given sigrok is installed. */ - PySys_SetPath("/usr/local/share/sigrok"); + // PySys_SetPath("/usr/local/share/sigrok"); return 0; } @@ -71,7 +71,8 @@ int sigrokdecode_run_decoder(const char *decodername, uint8_t *inbuf, uint64_t inbuflen, uint8_t **outbuf, uint64_t *outbuflen) { - const char *decoder_filename = "transitioncounter"; /* FIXME */ + // const char *decoder_filename = "transitioncounter"; /* FIXME */ + const char *decoder_filename = "i2c"; /* FIXME */ PyObject *py_name, *py_module, *py_func, *py_args; PyObject *py_value, *py_result; int ret; |