From 20c1b56787e42bb687259574d1496cedf24589b5 Mon Sep 17 00:00:00 2001 From: Jorge Rivera Date: Thu, 3 Oct 2024 18:24:24 +0200 Subject: [PATCH] Update to PiCode library v1.4 --- README.md | 18 ++++++++++-------- libs/PiCode | 2 +- src/picoder.h | 6 +++--- 3 files changed, 14 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index bc521ad..bd90694 100644 --- a/README.md +++ b/README.md @@ -74,13 +74,15 @@ picoder [options] ``` $ picoder decode -s "c:011010100101011010100110101001100110010101100110101010101010101012;p:1400,600,6800@" -[{ - "conrad_rsl_switch": { - "id": 1, - "unit": 2, - "state": "on" - } -}] +{ + "protocols": [{ + "conrad_rsl_switch": { + "id": 1, + "unit": 2, + "state": "on" + } + }] +} ``` ### Convert from pilight string to pulse train: @@ -219,7 +221,7 @@ pilight-send: - [ ] Support for [pilight-send](https://manual.pilight.org/programs/send.html) input format (pilight-send -p quigg_gt7000 -i 2816 -u 1 -f) # License -Copyright (c) 2021-2022 Jorge Rivera. All right reserved. +Copyright (c) 2021-2024 Jorge Rivera. All right reserved. License GNU Lesser General Public License v3.0. diff --git a/libs/PiCode b/libs/PiCode index 4a30fdb..52b4b57 160000 --- a/libs/PiCode +++ b/libs/PiCode @@ -1 +1 @@ -Subproject commit 4a30fdbdfbdc06df0922df231ef81d65b4c60720 +Subproject commit 52b4b57c86504b942c5c7887027b5b0b51c4f443 diff --git a/src/picoder.h b/src/picoder.h index b753ee7..143f17f 100644 --- a/src/picoder.h +++ b/src/picoder.h @@ -11,7 +11,7 @@ https://github.com/latchdevel/picoder - Copyright (c) 2021 Jorge Rivera. All right reserved. + Copyright (c) 2021-2024 Jorge Rivera. All right reserved. License GNU Lesser General Public License v3.0. */ @@ -19,7 +19,7 @@ #define PICODER_H #define MAYOR_VERSION 1 -#define MINOR_VERSION 3 +#define MINOR_VERSION 4 #include #include @@ -65,7 +65,7 @@ void show_version(){ printf("picoder v%d.%d (%s)\n",MAYOR_VERSION, MINOR_VERSION, STRINGIFY(BUILD_VERSION)); printf("Compiled at " __DATE__ " " __TIME__ " %s (%s)\n",STRINGIFY(BUILD_COMPILER), BUILD_TYPE ); printf("PiCode library version: %s\n", picode_version ? picode_version : "unknow"); - printf("Copyright (c) 2021-2022 Jorge Rivera. All right reserved.\n"); + printf("Copyright (c) 2021-2024 Jorge Rivera. All right reserved.\n"); printf("See https://github.com/latchdevel/picoder\n\n"); printf("License GNU Lesser General Public License v3.0.\n");