atc1441 / E-Paper_Pricetags

GNU General Public License v3.0
219 stars 38 forks source link

Always says "display: 0" #29

Closed probonopd closed 3 years ago

probonopd commented 3 years ago

Always says "display: 0" in answers.txt and in the Status area.

https://github.com/atc1441/E-Paper_Pricetags/blob/e9588c02beff5b0430add6320040759919cb6710/Custom_PriceTag_AccesPoint/ESP32_Async_PlatformIO/RFV3/trans_assist.cpp#L118

probonopd commented 3 years ago

Could it be that a id = request->getParam("id")->value().toInt(); is missing somewhere?

atc1441 commented 3 years ago

The display id is used to send to the correct displays so is set correctly, my guess is that it is cleared to early so back 0

atc1441 commented 3 years ago

The problem is here https://github.com/atc1441/E-Paper_Pricetags/blob/e9588c02beff5b0430add6320040759919cb6710/Custom_PriceTag_AccesPoint/ESP32_Async_PlatformIO/RFV3/main_variables.cpp#L102

atc1441 commented 3 years ago

If we put save receive buffer above this one it will work again https://github.com/atc1441/E-Paper_Pricetags/blob/e9588c02beff5b0430add6320040759919cb6710/Custom_PriceTag_AccesPoint/ESP32_Async_PlatformIO/RFV3/mode_trans.h#L25