Skip to content

Commit

Permalink
Merge branch 'master' into prevent-jitter-with-emulated-coms
Browse files Browse the repository at this point in the history
  • Loading branch information
Paciente8159 committed Nov 14, 2023
2 parents 1325c8b + f1e974b commit 362ba4b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions uCNC/src/hal/mcus/esp32/mcu_esp32.c
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,7 @@ void mcu_freq_to_clocks(float frequency, uint16_t *ticks, uint16_t *prescaller)
#ifndef IC74HC595_HAS_PWMS
uint32_t totalticks = (uint32_t)(500000.0f / frequency);
#else
uint32_t totalticks = (uint32_t)(125000.0f / frequency);
uint32_t totalticks = (uint32_t)(62500.0f / frequency);
#endif
*prescaller = 1;
while (totalticks > 0xFFFF)
Expand All @@ -756,7 +756,7 @@ float mcu_clocks_to_freq(uint16_t ticks, uint16_t prescaller)
#ifndef IC74HC595_HAS_PWMS
return (500000.0f / ((float)ticks * (float)prescaller));
#else
return (125000.0f / ((float)ticks * (float)prescaller));
return (62500.0f / ((float)ticks * (float)prescaller));
#endif
}

Expand Down
2 changes: 1 addition & 1 deletion uCNC/src/interface/serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ static FORCEINLINE char _serial_peek(void)

while (!serial_available())
{
mcu_dotasks();
cnc_dotasks();
}

#ifndef DISABLE_MULTISTREAM_SERIAL
Expand Down

0 comments on commit 362ba4b

Please sign in to comment.