Skip to content

Commit

Permalink
Fix logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Dragon-Knight committed Oct 15, 2023
1 parent 4fb9f3e commit c387625
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/OutputLogic.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ namespace Outputs
outObj.AddPort( {GPIOB, GPIO_PIN_14, ADC_CHANNEL_4, 5000} );
outObj.AddPort( {GPIOB, GPIO_PIN_13, ADC_CHANNEL_3, 5000} );
outObj.AddPort( {GPIOB, GPIO_PIN_12, ADC_CHANNEL_2, 5000} );
outObj.AddPort( {GPIOB, GPIO_PIN_2, ADC_CHANNEL_1, 5000} );
outObj.AddPort( {GPIOB, GPIO_PIN_2, ADC_CHANNEL_1, 10000} );
outObj.Init();

//outObj.On(4);
Expand Down
2 changes: 1 addition & 1 deletion include/TrunkHood.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ namespace TrunkHood

void TimeLogicToggleOff(DRV8874 &driver, actuator_data_t &data)
{
if(driver.GetCurrent(true) < CFG_IdleCurrent)
if(driver.GetCurrent() < CFG_IdleCurrent)
{
if(data.state == STATE_CLOSING)
{
Expand Down

0 comments on commit c387625

Please sign in to comment.