From 1625fa454c0f641b4d8fea962a6ebd74231cdb29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20L=C3=BCtzkendorf-Stahl?= Date: Thu, 26 Sep 2019 12:28:14 +0200 Subject: [PATCH] Fix the Crop Widget The functions set/getPictureID() now use the correct variable name "picc" instead of "pic". This fixes issue #46. --- NextionCrop.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NextionCrop.cpp b/NextionCrop.cpp index a2b50bf..547d111 100644 --- a/NextionCrop.cpp +++ b/NextionCrop.cpp @@ -18,7 +18,7 @@ NextionCrop::NextionCrop(Nextion &nex, uint8_t page, uint8_t component, */ uint16_t NextionCrop::getPictureID() { - return getNumberProperty("pic"); + return getNumberProperty("picc"); } /*! @@ -26,5 +26,5 @@ uint16_t NextionCrop::getPictureID() */ bool NextionCrop::setPictureID(uint16_t id) { - return setNumberProperty("pic", id); + return setNumberProperty("picc", id); }