Fix: Add NULL checks to prevent crash without RFID module
- Added NULL checks before vTaskSuspend/vTaskResume in scale.cpp - Prevents crash when calibrating without RFID module connected - Allows scale to work as standalone device without RFID
This commit is contained in:
1 parent
e943d2e70c
commit
e1da8eb525
2 files changed
+6
-6
No files matched your search
+1
-1
@@ -18,7 +18,7 @@ int16_t getFilteredDisplayWeight();
|
||||
|
||||
extern HX711 scale;
|
||||
extern int16_t weight;
|
||||
extern uint8_t weigthCouterToApi;
|
||||
extern uint8_t weightCounterToApi;
|
||||
extern uint8_t scale_tare_counter;
|
||||
extern uint8_t scaleTareRequest;
|
||||
extern uint8_t pauseMainTask;
|
||||
|
||||
Reference in new issue
Block a user