Searched refs:chsum (Results 1 – 2 of 2) sorted by relevance
132 unsigned char chsum = 0; in esp_gdbstub_read_command() local146 chsum += c; in esp_gdbstub_read_command()149 chsum = 0; in esp_gdbstub_read_command()156 chsum += c; in esp_gdbstub_read_command()169 if (rchsum != chsum) { in esp_gdbstub_read_command()
85 chsum = sum(ord(bytes([p])) for p in m.group(1)) & 0xFF89 if chsum == calc_chsum:101 … red_print('Malformed gdb message... calculated checksum %02x received %02x' % (chsum, calc_chsum))