[add] Extending the amount buffer from 30 to 50 bytes + adding some const fields

This commit is contained in:
Lucas PASCAL
2022-04-25 09:03:39 +02:00
parent 23d54771c1
commit 66ac35bc6f
4 changed files with 25 additions and 23 deletions

View File

@@ -138,7 +138,7 @@ void amountToString(const uint8_t *amount,
out_buffer[out_buffer_size - 1] = '\0';
}
bool parse_swap_config(uint8_t *config, uint8_t config_len, char *ticker, uint8_t *decimals) {
bool parse_swap_config(const uint8_t *config, uint8_t config_len, char *ticker, uint8_t *decimals) {
uint8_t ticker_len, offset = 0;
if (config_len == 0) {
return false;