mirror of
https://github.com/grblHAL/core.git
synced 2026-03-23 20:54:26 +08:00
Workaround for POS (Power on self-test) failure messages(s) not output on "native" USB connect.
Fixed handling of NVS buffer allocation, size was not increased as expected when physical NVS is capable of holding more than 2 Kbytes. This could lead to POS failure or plugins not initializing when a large tool table is configured.
This commit is contained in:
7
nvs.h
7
nvs.h
@@ -30,6 +30,13 @@ Minimum 1024 bytes required, more if > 5 axes enabled, space for driver and/or p
|
||||
#define NVS_SIZE 2048
|
||||
#endif
|
||||
|
||||
#ifndef NVS_SIZE_MAX
|
||||
/*! \brief Max size in bytes of the NVS buffer in RAM.
|
||||
Must be >= NVS_SIZE.
|
||||
*/
|
||||
#define NVS_SIZE_MAX 4096 // Limit to 4K for now
|
||||
#endif
|
||||
|
||||
//! Number of bytes used for storing CRC values. Do not change this!
|
||||
#ifndef NVS_CRC_BYTES
|
||||
#define NVS_CRC_BYTES 2
|
||||
|
||||
Reference in New Issue
Block a user