Skip to content

Commit

Permalink
Resize param data type
Browse files Browse the repository at this point in the history
  • Loading branch information
RuffaloLavoisier committed Sep 25, 2024
1 parent 1c3574b commit 64bb7d7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions include/apps/watchfaces/OswAppWatchfaceFitnessAnalog.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ class OswAppWatchfaceFitnessAnalog : public OswAppV2 {

static uint32_t calculateDistance(uint32_t steps);

void timeDisplay(OswHal* hal, uint32_t hour, uint32_t minute, uint32_t second);
void timeDisplay(OswHal* hal, uint32_t hour, uint32_t minute, uint32_t second, bool afterNoon);
void dateDisplay(OswHal* hal, uint32_t hour, uint32_t minute, uint32_t second, bool afterNoon);
void timeDisplay(OswHal* hal, uint8_t hour, uint8_t minute, uint8_t second);
void timeDisplay(OswHal* hal, uint8_t hour, uint8_t minute, uint8_t second, bool afterNoon);
void dateDisplay(OswHal* hal, uint8_t hour, uint8_t minute, uint8_t second, bool afterNoon);

void test();

Expand All @@ -38,8 +38,8 @@ class OswAppWatchfaceFitnessAnalog : public OswAppV2 {
unsigned screen = 0;

void showFitnessTracking(OswHal* hal);
void drawWatchFace(OswHal* hal, uint32_t hour, uint32_t minute, uint32_t second, bool afterNoon);
void drawDateFace(OswHal* hal, uint32_t hour, uint32_t minute, uint32_t second, bool afterNoon);
void drawWatchFace(OswHal* hal, uint8_t hour, uint8_t minute, uint8_t second, bool afterNoon);
void drawDateFace(OswHal* hal, uint8_t hour, uint8_t minute, uint8_t second, bool afterNoon);

#ifdef GIF_BG
OswAppGifPlayer* bgGif = nullptr;
Expand Down
2 changes: 1 addition & 1 deletion src/apps/watchfaces/OswAppWatchfaceFitness.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ void dateDisplay() {
OswAppWatchfaceDigital::dateOutput(yearInt, monthInt, dayInt);
}

void timeDisplay(uint32_t hour, uint32_t minute, uint32_t second) {
void timeDisplay(uint8_t hour, uint8_t minute, uint8_t second) {
OswHal* hal = OswHal::getInstance();
hal->gfx()->printDecimal(hour, 2);
hal->gfx()->print(":");
Expand Down
2 changes: 1 addition & 1 deletion src/apps/watchfaces/OswAppWatchfaceFitnessAnalog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ void OswAppWatchfaceFitnessAnalog::showFitnessTracking(OswHal* hal) {
hal->gfx()->print(LANG_WATCHFACE_FITNESS_DISTANCE);
}

void OswAppWatchfaceFitnessAnalog::drawWatchFace(OswHal* hal, uint32_t hour, uint32_t minute, uint32_t second, bool afterNoon) {
void OswAppWatchfaceFitnessAnalog::drawWatchFace(OswHal* hal, uint8_t hour, uint8_t minute, uint8_t second, bool afterNoon) {
// Indices
hal->gfx()->drawMinuteTicks(CENTER_X, CENTER_Y, 116, 112, ui->getForegroundDimmedColor(), true);
hal->gfx()->drawHourTicks(CENTER_X, CENTER_Y, 117, 107, ui->getForegroundColor(), true);
Expand Down

0 comments on commit 64bb7d7

Please sign in to comment.