48 const int TASK_USER_REFRESH = BIT3; ///< Refresh requested |
48 const int TASK_USER_REFRESH = BIT3; ///< Refresh requested |
49 |
49 |
50 |
50 |
51 /** |
51 /** |
52 * @brief Seconds timer callback. |
52 * @brief Seconds timer callback. |
|
53 * @param arg Arguments for the timer. |
53 */ |
54 */ |
54 void TimerCallback(void *arg); |
55 void TimerCallback(void *arg); |
55 |
56 |
56 |
57 |
57 /***************************************************************************/ |
58 /***************************************************************************/ |
756 /** |
757 /** |
757 * @brief Rotate subscreens numbers. |
758 * @brief Rotate subscreens numbers. |
758 * @param pos The new position, positive, negative or zero. |
759 * @param pos The new position, positive, negative or zero. |
759 * @param max The highest number. If already at the highest, select the lowest. |
760 * @param max The highest number. If already at the highest, select the lowest. |
760 * @param cursub The subscreen number by reference. This is updated with the new number. |
761 * @param cursub The subscreen number by reference. This is updated with the new number. |
|
762 * @param curoffset The offset in the list. This is updated with the new number. |
761 * @return Returns true if a new number is selected, false if nothing changed. |
763 * @return Returns true if a new number is selected, false if nothing changed. |
762 */ |
764 */ |
763 bool rotate_to_sub(rotary_encoder_position_t pos, int max, int *cursub, int *curoffset) |
765 bool rotate_to_sub(rotary_encoder_position_t pos, int max, int *cursub, int *curoffset) |
764 { |
766 { |
765 int sub = *cursub; |
767 int sub = *cursub; |