Swap info.json.gz length to #define.
This commit is contained in:
parent
81a53ac5b6
commit
ffcdfc6c03
3 changed files with 4 additions and 4 deletions
|
|
@ -19,8 +19,8 @@
|
|||
|
||||
#include "info_json_gz.h"
|
||||
bool get_info_json_chunk(uint16_t offset, uint8_t *data, uint8_t data_len) {
|
||||
if (offset + data_len > info_json_gz_len) {
|
||||
data_len = info_json_gz_len - offset;
|
||||
if (offset + data_len > INFO_JSON_GZ_LEN) {
|
||||
data_len = INFO_JSON_GZ_LEN - offset;
|
||||
}
|
||||
|
||||
memcpy_P(data, &info_json_gz[offset], data_len);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue