aboutsummaryrefslogtreecommitdiff
path: root/spaghetti-monster/anduril/version-check-mode.c
diff options
context:
space:
mode:
Diffstat (limited to 'spaghetti-monster/anduril/version-check-mode.c')
-rw-r--r--spaghetti-monster/anduril/version-check-mode.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/spaghetti-monster/anduril/version-check-mode.c b/spaghetti-monster/anduril/version-check-mode.c
deleted file mode 100644
index a47706f..0000000
--- a/spaghetti-monster/anduril/version-check-mode.c
+++ /dev/null
@@ -1,31 +0,0 @@
-// version-check-mode.c: Version check mode for Anduril.
-// Copyright (C) 2017-2023 Selene ToyKeeper
-// SPDX-License-Identifier: GPL-3.0-or-later
-
-#pragma once
-
-#include "version-check-mode.h"
-
-// empty state; logic is handled in FSM loop() instead
-uint8_t version_check_state(Event event, uint16_t arg) {
- return EVENT_NOT_HANDLED;
-}
-
-// this happens in FSM loop()
-inline void version_check_iter() {
- for (uint8_t i=0; i<sizeof(version_number)-1; i++) {
- uint8_t digit = pgm_read_byte(version_number + i) - '0';
- if (digit < 10) blink_digit(digit);
- else { // "buzz" for non-numeric characters
- for(uint8_t frame=0; frame<25; frame++) {
- set_level((frame&1) << 5);
- nice_delay_ms(16);
- }
- nice_delay_ms(BLINK_SPEED * 8 / 12);
- }
- nice_delay_ms(300);
- }
-
- set_state_deferred(off_state, 0);
-}
-
If you find this content useful please consider a small donation via bitcoin: bitcoin:1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2?amount=0.001&message=Donation Scraping git contents via cgit is very resource intensive. The continued hosting of these git repositories is entirely financed by your bitcoin contributions. For donations of a least 1 mBTC you include your IP address in the message of your bitcoin donation. This will remove this message in the future for requests from your IP, which will significantly reduce token usage. In any case, any contributions to bitcoin address 1mxKyQsHHugqRxPKgwaA7wUwJEGCNthn2 are very welcome. Thanks in advance for you contribution to a self-sustaining ecosystem.