Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make beacon options configurable on the command line #2

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: build

on:
pull_request:
push:
branches: [master]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- run: |
make
./axdigi2018 --help
14 changes: 14 additions & 0 deletions .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: pre-commit

on:
pull_request:
push:
branches: [master]

jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: pre-commit/action@v3.0.0
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/axdigi2018
*.o
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
repos:
- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v17.0.4
hooks:
- id: clang-format
17 changes: 15 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,2 +1,15 @@
all:
$(CC) -DDO_NOT_FORWARD_APRS_PACKET -Wall -g -oaxdigi2018 axdigi2018.c hexdump.c
VERSION = $(shell git rev-parse --short HEAD)
CFLAGS = -g -Wall
CPPFLAGS = -DVERSION="\"$(VERSION)\""

SRCS = \
axdigi2018.c
OBJS = $(SRCS:.c=.o)

all: axdigi2018

axdigi2018: $(OBJS)
$(CC) -o $@ $(OBJS)

clean:
rm -f axdigi2018 $(OBJS)
27 changes: 23 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,31 @@
# axdigi2018

AX.25 packet radio digipeater for linux

features:
## Features

- cross port digipeating
- aprs digipeater interworking
- periodical beacons

easy install and run:
* make
* ./axdigi2018
## Building

To build `axdigi2018`:

```
make
```

To run with default options:

```
./axdigi2018
```

## Options

- `--enable-beacon`, `-b` -- enable a periodic beacon every `--beacon-interval` seconds
- `--beacon-text`, `-t` *text* -- set beacon text
- `--beacon-dest`, `-d` *callsign* -- set beacon destination
- `--beacon-interval`, `-i` *seconds* -- set beacon interval (default 300)
- `--beacon-path`, `-p` *digi1,digi2,...* -- set beacon path
Loading