mirror of
https://github.com/digistump/DigistumpArduino.git
synced 2025-04-27 23:29:01 -07:00
fixed bug that prevented this from compiling
added const to line 273 to prescalers
This commit is contained in:
parent
528559488d
commit
008b95382b
@ -270,7 +270,7 @@ void vw_pll()
|
|||||||
// Returns prescaler index into {0, 0, 3, 6, 8, 10, 12} array
|
// Returns prescaler index into {0, 0, 3, 6, 8, 10, 12} array
|
||||||
// and sets nticks to compare-match value if lower than max_ticks
|
// and sets nticks to compare-match value if lower than max_ticks
|
||||||
// returns 0 & nticks = 0 on fault
|
// returns 0 & nticks = 0 on fault
|
||||||
uint8_t prescalers[] PROGMEM = {0, 0, 3, 6, 8, 10, 12}; /* Must be outside the function */
|
const uint8_t prescalers[] PROGMEM = {0, 0, 3, 6, 8, 10, 12}; /* Must be outside the function */
|
||||||
uint8_t _timer_calc(uint16_t speed, uint16_t max_ticks, uint16_t *nticks)
|
uint8_t _timer_calc(uint16_t speed, uint16_t max_ticks, uint16_t *nticks)
|
||||||
{
|
{
|
||||||
// Clock divider (prescaler) values - 0/4096: error flag
|
// Clock divider (prescaler) values - 0/4096: error flag
|
||||||
|
Loading…
x
Reference in New Issue
Block a user