Skip to content

Commit 47bb283

Browse files
authored
Merge pull request #110 from claycoleman/patch-1
Fix broken compilation code in tiny training tutorial
2 parents d6503bd + e08f040 commit 47bb283

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

tutorial/training/Inc/JPEGDecoder.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222
#include "User_Config.h"
2323
#include <stdio.h>
24+
#include <cstdint>
2425

2526
#if defined(ESP8266) || defined(ESP32)
2627

tutorial/training/Inc/lcd.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#ifndef LCD_H_
2020
#define LCD_H_
2121
#include <stdio.h>
22+
#include <cstdint>
2223

2324
void loadRGB565LCD(uint32_t x, uint32_t y, uint32_t width, uint32_t height,
2425
uint16_t *src, uint8_t resize);

tutorial/training/Src/camera.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ int DecodeandProcessRGB565(int image_width, int image_height,
173173
}
174174
}
175175
}
176+
return 0;
176177
}
177178

178179
int DecodeandProcessAndRGB(int image_width, int image_height,
@@ -271,6 +272,7 @@ int DecodeandProcessAndRGB(int image_width, int image_height,
271272
}
272273
}
273274
}
275+
return 0;
274276
}
275277

276278
int DecodeandProcess(int image_width, int image_height, uint8_t *image_data) {

0 commit comments

Comments
 (0)