From dcc9c8b5cad89f26c7b0197f83fe503dae4f1f6b Mon Sep 17 00:00:00 2001 From: Alan Johnston Date: Sun, 23 Sep 2018 21:49:47 -0400 Subject: [PATCH] 20wpm --- cw/cw_main.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/cw/cw_main.c b/cw/cw_main.c index 16039c0d..2592274b 100644 --- a/cw/cw_main.c +++ b/cw/cw_main.c @@ -113,6 +113,8 @@ int main(void) int encode_header(uint8_t *buffer, int avail) { int count = 0; + count += add_space(&buffer[count]); + count += add_space(&buffer[count]); count += add_dash(&buffer[count], 1); // c count += add_dot(&buffer[count], 1); @@ -125,18 +127,25 @@ int encode_header(uint8_t *buffer, int avail) { count += add_dash(&buffer[count], 1); count += add_space(&buffer[count]); + count += add_space(&buffer[count]); + count += add_dot(&buffer[count], 4); // h count += add_space(&buffer[count]); count += add_dot(&buffer[count], 2); // i count += add_space(&buffer[count]); + count += add_space(&buffer[count]); + count += add_dot(&buffer[count], 4); // h count += add_space(&buffer[count]); count += add_dot(&buffer[count], 2); // i count += add_space(&buffer[count]); + count += add_space(&buffer[count]); + count += add_space(&buffer[count]); + return count; } @@ -298,7 +307,7 @@ void config_cw() { ax5043WriteReg(0x165,0); ax5043WriteReg(0x166,0); - ax5043WriteReg(0x167,0x25); // 0x50); // 0x08); // 0x20); + ax5043WriteReg(0x167,0x50); // 0x25); // 0x50); // 0x08); // 0x20); ax5043WriteReg(0x161,0); ax5043WriteReg(0x162,0x20);