aboutsummaryrefslogtreecommitdiff
path: root/spaghetti-monster
diff options
context:
space:
mode:
authorSelene ToyKeeper2020-07-29 23:43:40 -0600
committerSelene ToyKeeper2020-07-29 23:43:40 -0600
commit1c6f6eb8d599183846aba367af58d4ea23cab9d3 (patch)
tree74c8a9c67c64a99abf991095af59f86376c2ec86 /spaghetti-monster
parentreduced ROM size slightly by making strobe vars non-volatile (diff)
downloadanduril-1c6f6eb8d599183846aba367af58d4ea23cab9d3.tar.gz
anduril-1c6f6eb8d599183846aba367af58d4ea23cab9d3.tar.bz2
anduril-1c6f6eb8d599183846aba367af58d4ea23cab9d3.zip
reduced ROM 42 bytes by making "emissions" non-volatile
(doesn't seem to be needed any more, ever since the IRQ rewrite a few months ago)
Diffstat (limited to 'spaghetti-monster')
-rw-r--r--spaghetti-monster/fsm-events.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/spaghetti-monster/fsm-events.h b/spaghetti-monster/fsm-events.h
index a132d5a..871c6a1 100644
--- a/spaghetti-monster/fsm-events.h
+++ b/spaghetti-monster/fsm-events.h
@@ -206,8 +206,10 @@ uint8_t push_event(uint8_t ev_type);
#define EMISSION_QUEUE_LEN 16
+// was "volatile" before, changed to regular var since IRQ rewrites seem
+// to have removed the need for it to be volatile
// no comment about "volatile emissions"
-volatile Emission emissions[EMISSION_QUEUE_LEN];
+Emission emissions[EMISSION_QUEUE_LEN];
void append_emission(Event event, uint16_t arg);
void delete_first_emission();
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.