ToyKeeper / anduril

Anduril 2 Flashlight Firmware and FSM UI Toolkit
GNU General Public License v3.0
199 stars 48 forks source link

d3aa: Fix D3AA build without party strobe enabled #68

Open stcarlso opened 3 months ago

stcarlso commented 3 months ago

Fix the D3AA build without party strobe enabled, or some other function that defines USE_DELAY_ZERO.

Building Anduril for D3AA with party strobe disabled removes the only dependency that defines the delay_zero() function, which is used by the weak battery detection feature. This leads to an implicit function declaration and eventually a build break with an undefined symbol. Adding a definition to anduril.h resolves the issue and allows building normally.

Tested to build and run on Emisar D3AA.

SammysHP commented 3 months ago

USE_WEAK_BATTERY_PROTECTION should add this as a dependency.

SiteRelEnby commented 3 months ago

PR opened against your branch. When that is merged then ✅