Release candidate version. The pointer in GAS Pressure display is changed to a triangle.

Dependencies:   UniGraphic mbed vt100

Please note, at 2-Mar-2018 the current version of mbed-lib has a defect in Ticker.
https://os.mbed.com/forum/bugs-suggestions/topic/29287/

So, mbed lib version 157 is intentionally being used.
Please do not update mbed library until the problem in the above URL is fixed.

In this version, format of GAS Pressure Display has been changed.
/media/uploads/Rhyme/low.jpg

/media/uploads/Rhyme/good.jpg

/media/uploads/Rhyme/high.jpg

moto

Committer:
Rhyme
Date:
Fri Mar 02 07:56:09 2018 +0000
Revision:
0:774324cbc5a6
Release candidate version. GAS Pressure pointer is now a triangle.; Some source file clean-up was done.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
Rhyme 0:774324cbc5a6 1 #include "mbed.h"
Rhyme 0:774324cbc5a6 2 #include "edge_time.h"
Rhyme 0:774324cbc5a6 3 #include "pending.h"
Rhyme 0:774324cbc5a6 4
Rhyme 0:774324cbc5a6 5 /*
Rhyme 0:774324cbc5a6 6 class pending_class {
Rhyme 0:774324cbc5a6 7 public:
Rhyme 0:774324cbc5a6 8 pending_class() ;
Rhyme 0:774324cbc5a6 9 ~pending_class() ;
Rhyme 0:774324cbc5a6 10
Rhyme 0:774324cbc5a6 11 request_t *request ;
Rhyme 0:774324cbc5a6 12 uint32_t submit_time ;
Rhyme 0:774324cbc5a6 13 uint32_t replied_time ;
Rhyme 0:774324cbc5a6 14 } ;
Rhyme 0:774324cbc5a6 15 */
Rhyme 0:774324cbc5a6 16
Rhyme 0:774324cbc5a6 17 pending_class::pending_class()
Rhyme 0:774324cbc5a6 18 {
Rhyme 0:774324cbc5a6 19 submit_time = edge_time ; /* save current time */
Rhyme 0:774324cbc5a6 20 replied_time = 0 ;
Rhyme 0:774324cbc5a6 21 request = new request_t ;
Rhyme 0:774324cbc5a6 22 request->messageType = 0 ;
Rhyme 0:774324cbc5a6 23 request->attrId = 0 ;
Rhyme 0:774324cbc5a6 24 request->requestId = 0 ;
Rhyme 0:774324cbc5a6 25 request->valueLen = 0 ;
Rhyme 0:774324cbc5a6 26 request->p_value = new uint8_t[256] ;
Rhyme 0:774324cbc5a6 27 }
Rhyme 0:774324cbc5a6 28
Rhyme 0:774324cbc5a6 29 pending_class::pending_class(
Rhyme 0:774324cbc5a6 30 uint8_t messageType,
Rhyme 0:774324cbc5a6 31 uint16_t attrId,
Rhyme 0:774324cbc5a6 32 uint8_t requestId,
Rhyme 0:774324cbc5a6 33 uint16_t valueLen,
Rhyme 0:774324cbc5a6 34 uint8_t *value
Rhyme 0:774324cbc5a6 35 )
Rhyme 0:774324cbc5a6 36 {
Rhyme 0:774324cbc5a6 37 submit_time = edge_time ; /* save current time */
Rhyme 0:774324cbc5a6 38 replied_time = 0 ;
Rhyme 0:774324cbc5a6 39 request = new request_t ;
Rhyme 0:774324cbc5a6 40 request->p_value = new uint8_t[256] ;
Rhyme 0:774324cbc5a6 41 request->messageType = messageType ;
Rhyme 0:774324cbc5a6 42 request->attrId = attrId ;
Rhyme 0:774324cbc5a6 43 request->requestId = requestId ;
Rhyme 0:774324cbc5a6 44 request->valueLen = valueLen ;
Rhyme 0:774324cbc5a6 45 memcpy(request->p_value, value, valueLen) ;
Rhyme 0:774324cbc5a6 46 }
Rhyme 0:774324cbc5a6 47
Rhyme 0:774324cbc5a6 48 pending_class::~pending_class()
Rhyme 0:774324cbc5a6 49 {
Rhyme 0:774324cbc5a6 50 submit_time = 0 ;
Rhyme 0:774324cbc5a6 51 replied_time = 0 ;
Rhyme 0:774324cbc5a6 52 delete [] request->p_value ;
Rhyme 0:774324cbc5a6 53 request->p_value = 0 ;
Rhyme 0:774324cbc5a6 54 delete request ;
Rhyme 0:774324cbc5a6 55 }