From 181184208242667a86e8b2074e7e873ae3ee990f Mon Sep 17 00:00:00 2001 From: Thomas Sax Date: Sat, 16 Dec 2023 09:36:53 +0100 Subject: [PATCH] no more define --- include/hwapi.h | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/include/hwapi.h b/include/hwapi.h index c983fe3..89d745d 100644 --- a/include/hwapi.h +++ b/include/hwapi.h @@ -39,9 +39,10 @@ V4.0 6.9.2023: activating DC-Bootloader in slve-lib (SM) #include "controlBus.h" #include "storeINdata.h" #include "dcBL.h" -#include "interfaces.h" +//#include <../plugins/interfaces.h> #include "shared_mem_buffer.h" #include "runProc.h" +#include "interfaces.h" /* @@ -74,9 +75,7 @@ V4.0 6.9.2023: activating DC-Bootloader in slve-lib (SM) //#undef THIS_IS_CA_MASTER //for CAmaster: -#ifndef THIS_IS_CA_MASTER -#define THIS_IS_CA_MASTER -#endif +//#define THIS_IS_CA_MASTER @@ -1300,8 +1299,15 @@ public: uint8_t bna_getCurrentNotes(uint16_t latestBill, uint16_t *currentNotes) const override; // returns number of collected bank notes since start-command (current transaction) - // latestBill: last accepted bank note, value in cent - // currentNotes an array with up to 16 (further) notes collected + // return value: numbers of bills or 99 in case of error + // latestBill: not used + // in case of error: currentNotes[0,1,2,3] = 1..4 error number(s) + // in normal case: + // currentNotes[0]: last bill in cent (e.g. 1000 = 10€) + // currentNotes[1]: bin 1 = bill is still in escrow else bill is stacked + // note: by now (dec2023) escrow is not used, bills always go to stacker (box) + // currentNotes[2]: total sum of bills in cent, low word (16bit) + // currentNotes[3]: total sum of bills in cent, high word (16bit) void bna_requestStackerLevel(void) const override;