PES 4 - Smart Medication Dispenser / PES4_ProgrammeforDesignReview2

Dependencies:   SDFileSystem mbed

Fork of PES4_Programme by PES 4 - Smart Medication Dispenser

Revision:
80:6e3eb8246ced
Parent:
77:c2e22d1e5d44
Child:
81:a869abf56e85
--- a/header/sdcard.h	Sat Apr 07 17:43:22 2018 +0000
+++ b/header/sdcard.h	Sun Apr 08 10:43:33 2018 +0000
@@ -32,7 +32,8 @@
 *   @param: s_time -> current time
 *   @param: char med1-med6 -> name of each pill
 */
-int write_medInventory(s_medContainer medInventory, s_time currentTime, char med1[], char med2[], char med3[], char med4[], char med5[], char med6[]);
+//int write_medInventory(s_medContainer medInventory, s_time currentTime, char med1[], char med2[], char med3[], char med4[], char med5[], char med6[]);
+int write_medInventory(s_medInventory);
 
 /*  Write occuring error to sd card protocol
 *   @param: fail -> error string
@@ -44,14 +45,14 @@
 */
 int erase_medError();
 
-/*  Read medication protocol from sd card
+/*  Read medication protocol from sd card to buffer
 *   @param: user -> 0 or 1
 */
-char read_medProtocol(char user);
+char *read_medProtocol(char user);
 
-/*  Read inventory protocol from sd card
+/*  Read inventory protocol from sd card to struct s_medInventory
 */
-char read_medInventory();
+s_medInventory read_medInventory();
 
 /*  Read error protocol from sd card
 */