Skip to content

Commit

Permalink
Added comment
Browse files Browse the repository at this point in the history
  • Loading branch information
atlaste committed Sep 19, 2024
1 parent 5f725bf commit 8939464
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions FluidNC/src/Spindles/VFD/VFDProtocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,14 @@ namespace Spindles {
uint32_t arg;
};

// Careful observers will notice that these *shouldn't* be static, but they are. The reason is
// hard to track down. In the spindle class, you can find:
//
// 'virtual void init() = 0; // not in constructor because this also gets called when $$ settings change'
//
// With init being called multiple times, static suddenly makes more sense - especially since there is
// no de-init. Oh well...

static QueueHandle_t vfd_cmd_queue;
static TaskHandle_t vfd_cmdTaskHandle;
static void vfd_cmd_task(void* pvParameters);
Expand Down

0 comments on commit 8939464

Please sign in to comment.