Skip to content

Commit

Permalink
fix useless +/-
Browse files Browse the repository at this point in the history
  • Loading branch information
colinleroy committed Jan 24, 2025
1 parent c007d25 commit 9e9afb4
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 12 deletions.
6 changes: 6 additions & 0 deletions src/debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
a2tools (23.0.1.1) bionic; urgency=medium

* STP: add mkdir

-- Colin Leroy-Mira <colin@colino.net> Thu, 23 Jan 2025 21:28:19 +0200

a2tools (22.0.2.4) bionic; urgency=medium

* Format string fix (fixes audio playback)
Expand Down
12 changes: 6 additions & 6 deletions src/lib/serial/asm/simple_serial_io.s
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,15 @@ SCRN_THROB = $0427
.endproc

.proc simple_serial_compute_ptr_end: near
sta ptr3
stx ptr3+1
jsr popax
sta ptr4
sta ptr3 ; Len
stx ptr3+1 ; Len high byte
jsr popax ; Pop buffer
sta ptr4 ; Buffer to ptr4
stx ptr4+1
clc
adc ptr3 ; set ptr3 to end
adc ptr3 ; add len => set ptr3 to end
sta ptr3
lda ptr4+1
lda ptr4+1 ; add len high byte
adc ptr3+1
sta ptr3+1
rts
Expand Down
11 changes: 6 additions & 5 deletions src/mastodon/api/compose.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ signed char api_send_toot(char mode, char *buffer, char *cw, char sensitive_medi
}
strcat(extra_buf, "]}\n");
} else {
extra_buf = NULL;
extra_buf = strdup("");
}

snprintf(endpoint_buf, ENDPOINT_BUF_SIZE, STATUS_ENDPOINT"%s%s",
Expand All @@ -191,7 +191,7 @@ signed char api_send_toot(char mode, char *buffer, char *cw, char sensitive_medi
"S|status|"TRANSLITCMD"|%s\n",
(IS_NOT_NULL(ref_toot_id) && mode == 'r') ? 'S' : 'B',
(IS_NOT_NULL(ref_toot_id) && mode == 'r') ? ref_toot_id : "null",
IS_NOT_NULL(extra_buf) ? extra_buf : "",
extra_buf,
compose_audience_str(compose_audience),
sensitive_medias ? "true":"false",
translit_charset,
Expand All @@ -208,12 +208,13 @@ signed char api_send_toot(char mode, char *buffer, char *cw, char sensitive_medi
body[o++] = buffer[i];
} else {
strcpy(body + o, "\\r\\n");
o+=4;
o += 4;
}
}

/* End of status */
body[o++] = '\n';
len = o - 1;
body[o] = '\n';
len = o;

surl_send_data_params((uint32)len, SURL_DATA_APPLICATION_JSON_HELP);
surl_send_data_chunk(body, len);
Expand Down
2 changes: 1 addition & 1 deletion src/mastodon/debug
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
make clean all SER_DEBUG=1 && cd ../.. && make mastoperso-65c02.po && mame apple2c0 -window -flop1 mastoperso-65c02.po -resolution 560x384 -printer null_modem -bitb socket.localhost:2001 -modem null_modem -bitb2 socket.localhost:2000 -nomouse -debug; cd src/mastodon
make clean all SER_DEBUG=1 && cd ../.. && make mastoperso-65c02.po && mame apple2cfr -window -flop1 mastoperso-65c02.po -resolution 560x384 -printer null_modem -bitb socket.localhost:2001 -modem null_modem -bitb2 socket.localhost:2000 -nomouse -debug; cd src/mastodon

0 comments on commit 9e9afb4

Please sign in to comment.