kopia lustrzana https://github.com/DL7AD/pecanpico10
Small fix to ?aprsh command.
rodzic
697b6eee4f
commit
1f3c1fa07a
|
@ -55,7 +55,7 @@ const conf_t conf_flash_default = {
|
|||
// Primary image transmission thread
|
||||
.img_pri = {
|
||||
.thread_conf = {
|
||||
.active = true,
|
||||
.active = false,
|
||||
.cycle = TIME_S2I(60*5),
|
||||
.init_delay = TIME_S2I(60*5),
|
||||
.send_spacing = TIME_S2I(5)
|
||||
|
@ -79,10 +79,10 @@ const conf_t conf_flash_default = {
|
|||
// Secondary image transmission thread
|
||||
.img_sec = {
|
||||
.thread_conf = {
|
||||
.active = false,
|
||||
.cycle = TIME_S2I(600),
|
||||
.init_delay = TIME_S2I(20),
|
||||
.send_spacing = TIME_MS2I(100)
|
||||
.active = true,
|
||||
.cycle = TIME_S2I(300),
|
||||
.init_delay = TIME_S2I(60),
|
||||
.send_spacing = TIME_S2I(30)
|
||||
},
|
||||
.radio_conf = {
|
||||
.pwr = 0x7F,
|
||||
|
@ -94,7 +94,7 @@ const conf_t conf_flash_default = {
|
|||
.call = "VK2GJ-15",
|
||||
.path = "",
|
||||
|
||||
.res = RES_VGA,
|
||||
.res = RES_QVGA,
|
||||
.quality = 4,
|
||||
.buf_size = 64*1024
|
||||
},
|
||||
|
|
|
@ -906,7 +906,13 @@ THD_FUNCTION(pktAFSKDecoder, arg) {
|
|||
radio_cca_fifo_t *myFIFO = myDriver->active_demod_object;
|
||||
if(myFIFO != NULL) {
|
||||
|
||||
/* Wait for queue object to be released by PWM. */
|
||||
/*
|
||||
* Wait for queue object to be released by PWM.
|
||||
* Normally this is the case.
|
||||
* If can be a forced release by semaphore reset.
|
||||
* TODO: This may happen if the watchdog system forces reset.
|
||||
* TBD.
|
||||
*/
|
||||
(void)chBSemWait(&myFIFO->sem);
|
||||
|
||||
#if USE_HEAP_PWM_BUFFER == TRUE
|
||||
|
|
|
@ -189,7 +189,10 @@ const APRSCommand aprs_commands[] = {
|
|||
};
|
||||
|
||||
/*
|
||||
* Parse command arguments from aprs message.
|
||||
* @brief parse arguments from a command string.
|
||||
*
|
||||
* @return pointer to next element in string.
|
||||
* @retval NULL if end.
|
||||
*/
|
||||
static char *aprs_parse_arguments(char *str, char **saveptr) {
|
||||
char *p;
|
||||
|
@ -225,9 +228,14 @@ static char *aprs_parse_arguments(char *str, char **saveptr) {
|
|||
}
|
||||
|
||||
/*
|
||||
* Execute a command found in an aprs message.
|
||||
* Return result of command.
|
||||
* False means either command failed or does not exist.
|
||||
* @brief Execute a command in an APRS message.
|
||||
* @notes Known commands are in APRS command table.
|
||||
* @notes Commands themselves return only MSG_OK or MSG_ERROR.
|
||||
*
|
||||
* @return result of command.
|
||||
* @retval MSG_OK if the command completed.
|
||||
* @retval MSG_ERROR if there was an error in command execution.
|
||||
* @retval MSG_TIMEOUT if the command was not found in known commands.
|
||||
*/
|
||||
static msg_t aprs_cmd_exec(const APRSCommand *acp,
|
||||
char *name,
|
||||
|
@ -502,7 +510,7 @@ msg_t aprs_send_aprsh_message(aprs_identity_t *id,
|
|||
}
|
||||
if(out == 0) {
|
||||
out = chsnprintf(buf, sizeof(buf),
|
||||
"%s not heard", heard_list[i].call);
|
||||
"%s not heard", argv[0]);
|
||||
}
|
||||
}
|
||||
packet_t pp = aprs_encode_message(id->call, id->path, id->src, buf, false);
|
||||
|
|
Ładowanie…
Reference in New Issue