UPD morse delay slower for fast morse, 2024 standard time

This commit is contained in:
Thomas Kuschel 2024-10-16 00:13:47 +02:00
parent 64c43796e6
commit 545dd0c17d
4 changed files with 10 additions and 11 deletions

View File

@ -26,7 +26,7 @@ extern "C" {
#define STR(x) STR_HELPER(x)
#endif
#define VERSION_MAJOR 0
#define VERSION_MINOR 4
#define VERSION_MINOR 5
#ifdef DEBUG
#define VERSION_DEBUG ".D"
#else
@ -41,7 +41,7 @@ extern "C" {
/* #define COMPILE_YEAR (__DATE__ + 7) */
#define DATE_COMPILE_CENTURY (20)
#define DATE_COMPILE_YEAR (22)
#define DATE_COMPILE_YEAR (24)
#if !defined _SYS_ERRNO_H_ && !defined __ERRNO_H__ && !defined __AT1_ERROR_NUMBERS__
#define __AT1_ERROR_NUMBERS__

View File

@ -57,7 +57,6 @@ static const cmd_table_t cmd_table[] = {
{"hidden", 2, CMD_HIDDEN, do_test },
{"info", 1, CMD_NO_FLAG, do_info },
{"sinfo", 1, CMD_SECRET, do_sinfo },
{"time", 1, CMD_NO_FLAG, do_time },
};

View File

@ -13,7 +13,7 @@
#include <at1_defines.h> /* include my defines from a global view, else */
#ifndef DATE_COMPILE_CENTURY
#define DATE_COMPILE_CENTURY (20)
#define DATE_COMPILE_YEAR (22)
#define DATE_COMPILE_YEAR (24)
#endif
#if !defined _SYS_ERRNO_H_ && !defined __ERRNO_H__ && !defined __AT1_ERROR_NUMBERS__

View File

@ -585,10 +585,10 @@ static void MX_RTC_Init(void)
{
Error_Handler();
}
sDate.WeekDay = RTC_WEEKDAY_MONDAY;
sDate.Month = RTC_MONTH_AUGUST;
sDate.Date = 0x1;
sDate.Year = 0x22;
sDate.WeekDay = RTC_WEEKDAY_TUESDAY;
sDate.Month = RTC_MONTH_DECEMBER;
sDate.Date = 0x31;
sDate.Year = 0x24;
if (HAL_RTC_SetDate(&hrtc, &sDate, RTC_FORMAT_BCD) != HAL_OK)
{
@ -832,7 +832,7 @@ int _write(int fd, unsigned char *p, int len)
}
void print_system_info(void) {
puts("*************************************");
puts("***************************************");
puts(PROGRAM_ID " " AUTHOR_STRING);
puts("Compiled: " __DATE__ " " __TIME__);
puts(osKernelSystemId);
@ -1082,7 +1082,7 @@ void start_morse_task(void *argument)
if(++i % 32) { /* do this 31 times, then Morse my callsign once at high speed */
morse(inst, "MO", morsedelay, clk);
} else {
morsedelay = delay/3;
morsedelay = delay/2;
morse(inst, "f0x.at1 de oe3tkt/p", morsedelay, clk);
morsedelay = delay;
}
@ -1114,7 +1114,7 @@ void start_clk2_task(void *argument)
if(++i % 32) { /* do this 31 times, then Morse my callsign once at high speed */
morse(inst, "MOe", morsedelay, clk);
} else {
morsedelay = delay/3;
morsedelay = delay/2;
morse(inst, "f0x.at1 de oe3tkt/p", morsedelay, clk);
morsedelay = delay;
}