Closed Aleksey-748 closed 2 years ago
I took some time to integrate your function (for color lcd only for the moment. It works now and be delivered in the next release. Just changed all sizeof(string); by strlen(string) and some minor changes to make it working. If you want to test it just OTA the bin with the command sys.prerelease
OK, thanks, with this function, a decent amount of SRAM memory will be freed up in my project.
I managed to write a small procedure for converting characters in the format string & # 1040; in the format 0xD0A0, if possible, add it to the project. //------------------------------------------------------------------------------// void Cyrillic_decoding(void){ // union { // struct { // unsigned char t_LOW; // unsigned char t_HIG; // }; // uint16_t T_t; // }T_t; // uint16_t ss = 0; uint16_t sss = 0; size_t len = 0; uint8_t l = 0;
while (strstr(string,"&#") != NULL){
}
if(len < sizeof(string)){ l = 1; }
if(l){ len = sizeof(string); for(uint16_t s=sss;s<len;s++){ string_rec[ss++] = string[s]; sss++; } } } //------------------------------------------------------------------------------